mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
trying with mcmodel=large
Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
15
.github/scripts/strategy-matrix/generate.py
vendored
15
.github/scripts/strategy-matrix/generate.py
vendored
@@ -178,17 +178,18 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
|
|||||||
cxx_flags += " -fno-var-tracking-assignments"
|
cxx_flags += " -fno-var-tracking-assignments"
|
||||||
# Disable mold linker - it's too strict about relocations with GCC runtime libs
|
# Disable mold linker - it's too strict about relocations with GCC runtime libs
|
||||||
# Use gold or default linker instead
|
# Use gold or default linker instead
|
||||||
cmake_args += ' -Duse_mold=OFF'
|
#cmake_args += ' -Duse_mold=OFF'
|
||||||
exe_linker_flags += ' -fuse-ld=lld'#-static-libubsan -static-libasan -static-libtsan'
|
#exe_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan'
|
||||||
shared_linker_flags += ' -fuse-ld=lld'#-static-libubsan -static-libasan -static-libtsan'
|
#shared_linker_flags += ' -fuse-ld=gold'#-static-libubsan -static-libasan -static-libtsan'
|
||||||
|
|
||||||
if architecture['platform'] == 'linux/amd64':
|
if architecture['platform'] == 'linux/amd64':
|
||||||
# Add -mcmodel=medium and -fPIC to both compiler AND linker flags
|
# Add -mcmodel=large and -fPIC to both compiler AND linker flags
|
||||||
# This is needed because sanitizers create very large binaries
|
# This is needed because sanitizers create very large binaries
|
||||||
# -fPIC enables position independent code to avoid relocation range issues
|
# -fPIC enables position independent code to avoid relocation range issues
|
||||||
cxx_flags += ' -mcmodel=medium -fPIC'
|
# large model removes the 2GB limitation that medium model has
|
||||||
exe_linker_flags+=' -mcmodel=medium -fPIC'
|
cxx_flags += ' -mcmodel=large -fPIC'
|
||||||
shared_linker_flags += ' -mcmodel=medium -fPIC'
|
exe_linker_flags+=' -mcmodel=large -fPIC'
|
||||||
|
shared_linker_flags += ' -mcmodel=large -fPIC'
|
||||||
|
|
||||||
if "-O0" in cxx_flags:
|
if "-O0" in cxx_flags:
|
||||||
cxx_flags = cxx_flags.replace("-O0", "-O1")
|
cxx_flags = cxx_flags.replace("-O0", "-O1")
|
||||||
|
|||||||
Reference in New Issue
Block a user