瀏覽代碼

emscripten: use document.querySelector() instead of getElementById().

legacy
Sam Hocevar 5 年之前
父節點
當前提交
6187be0850
共有 2 個檔案被更改,包括 4 行新增3 行删除
  1. +3
    -2
      build/autotools/m4/lol-conf.m4
  2. +1
    -1
      src/lol/base/features.h

+ 3
- 2
build/autotools/m4/lol-conf.m4 查看文件

@@ -183,11 +183,12 @@ AC_CHECK_HEADERS(emscripten.h,
AC_CHECK_HEADERS(emscripten/html5.h)
dnl XXX: activate this if memory heap is too small
#AM_CXXFLAGS="${AM_CXXFLAGS} -s ALLOW_MEMORY_GROWTH=1"
dnl See https://github.com/emscripten-core/emscripten/pull/7977 for more details
CPPFLAGS="${CPPFLAGS} -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=1"
dnl HACK: until emcc properly adds these to EMSDK_OPTS
CPPFLAGS="${CPPFLAGS} -U__i386__ -U__x86_64__ -U__i386 -U__x86_64 -Ui386 -Ux86_64"
CPPFLAGS="${CPPFLAGS} -U__SSE__ -U__SSE2__ -U__MMX__ -UX87_DOUBLE_ROUNDING"
CPPFLAGS="${CPPFLAGS} -UHAVE_GCC_ASM_FOR_X87 -DEMSCRIPTEN -U__STRICT_ANSI__"
CPPFLAGS="${CPPFLAGS} -U__CYGWIN__"])
CPPFLAGS="${CPPFLAGS} -UHAVE_GCC_ASM_FOR_X87 -U__STRICT_ANSI__ -U__CYGWIN__"])
AM_CONDITIONAL(LOL_USE_EMSCRIPTEN, test "${ac_cv_my_have_emscripten}" != "no")




+ 1
- 1
src/lol/base/features.h 查看文件

@@ -23,7 +23,7 @@

#define LOL_FEATURE_THREADS 1

#if defined EMSCRIPTEN
#if defined __EMSCRIPTEN__
# undef LOL_FEATURE_THREADS
#endif



Loading…
取消
儲存