build,ci: turn on precompiled headers for emscripten (#315)
This commit is contained in:
parent
c3538181ed
commit
c6a6bda159
3 changed files with 3 additions and 3 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -22,7 +22,7 @@ on:
|
|||
|
||||
env:
|
||||
MESON_VERSION: '0.56.2'
|
||||
EM_VERSION: '2.0.25'
|
||||
EM_VERSION: '2.0.26'
|
||||
EM_CACHE_FOLDER: 'emsdk'
|
||||
TAISEI_NOPRELOAD: 0
|
||||
TAISEI_PRELOAD_REQUIRED: 1
|
||||
|
|
|
@ -20,7 +20,7 @@ source_map_base = 'http://localhost:6931/'
|
|||
[built-in options]
|
||||
b_ndebug = 'true'
|
||||
b_pie = false
|
||||
b_pch = false
|
||||
b_pch = true
|
||||
b_staticpic = false
|
||||
c_args = cflags
|
||||
c_link_args = ldflags
|
||||
|
|
|
@ -242,7 +242,7 @@ if host_machine.system() == 'emscripten'
|
|||
libtaisei = static_library(taisei_basename, taisei_src, version_deps,
|
||||
dependencies : taisei_deps,
|
||||
c_pch : 'pch/taisei_pch.h',
|
||||
c_args : [em_common_args, taisei_c_args],
|
||||
c_args : [em_common_args, taisei_c_args, '-s', 'DEFAULT_TO_CXX=0'],
|
||||
install : false,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue