mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00

Clang 16 of emsdk does not support `-flto=0` option. so I temporarily add -flto option. clang-16: error: unsupported argument '0' to option '-flto=' em++: error: '/home/junsu/dev/os/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -I/home/junsu/dev/os/emsdk/upstream/emscripten/cache/sysroot/include/SDL --sysroot=/home/junsu/dev/os/emsdk/upstream/emscripten/cache/sysroot -Xclang -iwithsysroot/include/compat -O2 -Werror -fno-unroll-loops -g3 -flto=0 -c /home/junsu/dev/os/emsdk/upstream/emscripten/system/lib/embind/bind.cpp -o /home/junsu/dev/os/emsdk/upstream/emscripten/cache/build/libembind-rtti/bind.o' failed (returned 1)
21 lines
669 B
Text
21 lines
669 B
Text
[binaries]
|
|
cpp = 'EMSDK:upstream/emscripten/em++.py'
|
|
ar = 'EMSDK:upstream/emscripten/emar.py'
|
|
strip = '-strip'
|
|
|
|
[properties]
|
|
root = 'EMSDK:upstream/emscripten/system'
|
|
shared_lib_suffix = 'js'
|
|
static_lib_suffix = 'js'
|
|
shared_module_suffix = 'js'
|
|
exe_suffix = 'js'
|
|
|
|
#[built-in options]
|
|
cpp_args = ['-Wshift-negative-value', '--bind' , '-s' , 'WASM=1' , '-s' , 'ALLOW_MEMORY_GROWTH=1' , '-s' , 'FORCE_FILESYSTEM=1' , '-flto', '-O2']
|
|
cpp_link_args = ['-Wshift-negative-value', '--bind' , '-s' , 'WASM=1' , '-s' , 'ALLOW_MEMORY_GROWTH=1' , '-s' , 'FORCE_FILESYSTEM=1' , '-flto', '-O2']
|
|
|
|
[host_machine]
|
|
system = 'emscripten'
|
|
cpu_family = 'x86'
|
|
cpu = 'i686'
|
|
endian = 'little'
|