Skip to content

Commit ac21bb2

Browse files
authored
Merge pull request #2653 from anutosh491/build_to_wasm
WASM: Use release build
2 parents 7d0cfdb + a835cd0 commit ac21bb2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: build_to_wasm.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ cp -r src/runtime/lpython src/bin/asset_dir
99

1010
./build0.sh
1111
emcmake cmake \
12-
-DCMAKE_BUILD_TYPE=Debug \
12+
-DCMAKE_BUILD_TYPE=Release \
1313
-DCMAKE_CXX_FLAGS_DEBUG="-Wall -Wextra -fexceptions" \
14+
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -fexceptions" \
1415
-DWITH_LLVM=no \
1516
-DLPYTHON_BUILD_ALL=yes \
1617
-DLPYTHON_BUILD_TO_WASM=yes \

Diff for: src/lpython/parser/parser_stype.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static_assert(std::is_trivial<YYSTYPE>::value);
113113
// YYSTYPE must be at least as big, but it should not be bigger, otherwise it
114114
// would reduce performance.
115115
// A temporary fix for PowerPC 32-bit, where the following assert fails with (16 == 12).
116-
#ifndef __ppc__
117-
static_assert(sizeof(YYSTYPE) == sizeof(Vec<LPython::AST::ast_t*>));
116+
#if !defined(HAVE_BUILD_TO_WASM) && !defined(__ppc__)
117+
static_assert(sizeof(YYSTYPE) == sizeof(Vec<AST::ast_t*>));
118118
#endif
119119

120120
static_assert(std::is_standard_layout<Location>::value);

0 commit comments

Comments
 (0)