You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4595c58
Browse filesBrowse the repository at this point in the historyBrowse files
build(runtime): stop overwriting the NDK's default compile flags
CMakeLists.txt assigned CMAKE_CXX_FLAGS outright in both the release and
Debug branches, discarding everything the NDK toolchain had put there:
-DANDROID, -fdata-sections, -funwind-tables, -Wformat
-Werror=format-security, the hardening defaults and, on armeabi-v7a,
-march=armv7-a -mthumb. The runtime's v7 code was therefore built as
A32 while V8's v7 archive is Thumb-2.
Append to CMAKE_CXX_FLAGS instead so the toolchain defaults survive, and
drop -fno-data-sections, which had no stated reason. The NDK's
-fstack-protector-strong and -D_FORTIFY_SOURCE=2 are switched back off
right after the defaults, so codegen stays as fast as before.
-mstackrealign is no longer passed by us for any ABI: it only works
around an x86 stack-alignment bug below API 24, and the NDK toolchain
adds it itself for exactly that case.
Optimized links also get -Wl,-O2 (string tail merging).
0 commit comments