blob: 7b7f85698a7e49dbd18b05fdce74b711846725b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
file(GLOB wasm_HEADERS ../*.h)
set(wasm_SOURCES
literal.cpp
parsing.cpp
wasm.cpp
wasm-binary.cpp
wasm-debug.cpp
wasm-emscripten.cpp
wasm-interpreter.cpp
wasm-io.cpp
wasm-s-parser.cpp
wasm-stack.cpp
wasm-type.cpp
wasm-validator.cpp
wat-lexer.cpp
wat-parser.cpp
${wasm_HEADERS}
)
# wasm-debug.cpp includes LLVM header using std::iterator (deprecated in C++17)
if (NOT MSVC)
set_source_files_properties(wasm-debug.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
endif()
add_library(wasm OBJECT ${wasm_SOURCES})
|