Skip to content

Commit 05ff111

Browse files
committed
cmake: fix building nacl_helper_bootstrap with zero-based 64-bit sandbox with Clang
1 parent ab71979 commit 05ff111

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/trusted/service_runtime/linux/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ if (ARCH_amd64)
6565
# truncated, which produces an error. With mcmodel set to large,
6666
# there is no restriction on the code and data, so we can
6767
# safely set reserve_top to 0x100000000.
68-
list(APPEND BOOTSTRAP_FLAGS "-mcmodel=large")
68+
if (DAEMON_CXX_COMPILER_Clang_COMPATIBILITY)
69+
list(APPEND BOOTSTRAP_FLAGS "-mcmodel=medium")
70+
else()
71+
list(APPEND BOOTSTRAP_FLAGS "-mcmodel=large")
72+
endif()
6973
else()
7074
set(RESERVE_TOP "0x0")
7175
endif()

0 commit comments

Comments
 (0)