mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
deps: Always build lua with -fPIC and -O0
This commit is contained in:
parent
d33b13dd6b
commit
d5228787ce
3
third-party/cmake/BuildLua.cmake
vendored
3
third-party/cmake/BuildLua.cmake
vendored
@ -51,14 +51,13 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(LUA_CFLAGS "-g3")
|
||||
set(LUA_CFLAGS "-O0 -g3 -fPIC")
|
||||
set(LUA_LDFLAGS "")
|
||||
|
||||
if(CLANG_ASAN_UBSAN)
|
||||
set(LUA_CFLAGS "${LUA_CFLAGS} -fsanitize=address")
|
||||
set(LUA_CFLAGS "${LUA_CFLAGS} -fno-omit-frame-pointer")
|
||||
set(LUA_CFLAGS "${LUA_CFLAGS} -fno-optimize-sibling-calls")
|
||||
set(LUA_CFLAGS "${LUA_CFLAGS} -fPIC")
|
||||
|
||||
set(LUA_LDFLAGS "${LUA_LDFLAGS} -fsanitize=address")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user