1.0.1 • Published 3 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_root
to this path, i.e.:npm config set wasi_sdk_root <path>
Usage
- Add this package as a dev dependency.
- Create a
prepublishOnly
scriptwasmatazz-c path/to/c/*.c
wherepath/to/c/*.c
is replaced with one or more paths to C files to compile.