1.0.1 • Published 5 years ago
@wasmatazz/c-cpp-base v1.0.1
c-cpp-base
Package base for C/C++ based projects.
Setup
- Download the latest release of wasi-sdk for your platform, and install it somewhere.
Find the absolute path to the wasi-sdk root folder (it should contain
bin/,lib/andshare/subfolders) and set the npm config itemwasi_sdk_rootto this path, i.e.:npm config set wasi_sdk_root <path>
Usage
- Add this package as a dev dependency.
- Create a
prepublishOnlyscriptwasmatazz-c path/to/c/*.cwherepath/to/c/*.cis replaced with one or more paths to C files to compile.