Skip to content

Commit

Permalink
Specify C11 in build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
yyamdev committed Aug 21, 2019
1 parent 73efa78 commit 83e264e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ del %output_file%
echo Building %output_file%

REM Compile both source files into LLVM bitcode
clang src/squares.c -emit-llvm -c -o llvm_bitfile_squares.bc --target=wasm32
clang src/shared.c -emit-llvm -c -o llvm_bitfile_shared.bc --target=wasm32
clang src/squares.c -emit-llvm -c -o llvm_bitfile_squares.bc --target=wasm32 -std=c11
clang src/shared.c -emit-llvm -c -o llvm_bitfile_shared.bc --target=wasm32 -std=c11

REM Link object files to create WASM module.
REM The module defines the size of its memory. (It exports memory rather than imports it)
Expand Down

0 comments on commit 83e264e

Please sign in to comment.