mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Build: Emit paths in macros and debug sections relative to repo root
To avoid including paths from the build environment in the binaries. A step towards having reproducible builds.
This commit is contained in:
parent
9a82c22a85
commit
b85af075b7
Notes:
sideshowbarker
2024-07-19 01:58:31 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/b85af075b7d Pull-request: https://github.com/SerenityOS/serenity/pull/3657
1 changed files with 1 additions and 0 deletions
|
@ -202,6 +202,7 @@ set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared")
|
|||
#FIXME: -fstack-protector
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Os -g1 -fno-exceptions -fno-rtti -Wno-address-of-packed-member -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -Wno-nonnull-compare -Wno-deprecated-copy -Wno-expansion-to-defined")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffile-prefix-map=${CMAKE_SOURCE_DIR}=.")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -DSANITIZE_PTRS")
|
||||
add_link_options(--sysroot ${CMAKE_BINARY_DIR}/Root)
|
||||
|
|
Loading…
Reference in a new issue