build,ci: turn on precompiled headers for emscripten (#315)

This commit is contained in:
Alice D 2021-08-05 18:59:55 -04:00 committed by GitHub
parent c3538181ed
commit c6a6bda159
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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,
)