Skip to content

Commit 5da6a9c

Browse files
committed
fixup
1 parent 711da7a commit 5da6a9c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ cmake_minimum_required(VERSION 3.28)
33
project(native_client C CXX ASM)
44

55
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
6+
67
include(DaemonPlatform/Platform)
78
include(NaClFlags)
89

10+
if (NOT PYTHON)
11+
set(PYTHON "python3")
12+
endif()
13+
914
include_directories("include-hax")
1015

1116
if (ARCH STREQUAL "i686")

src/trusted/service_runtime/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,20 @@ if (LINUX AND NOT BUILD_ELSEWHERE)
482482
set_target_properties(nacl_bootstrap PROPERTIES COMPILE_FLAGS "${BOOTSTRAP_FLAGS_STRING}")
483483
set_target_properties(nacl_bootstrap PROPERTIES COMPILE_DEFINITIONS "${BOOTSTRAP_DEFINITIONS_STRING}")
484484

485+
add_custom_target(nacl_bootstrap_raw
486+
COMMAND env CXX="${CMAKE_CXX_COMPILER}" "${PYTHON}"
487+
"${CMAKE_CURRENT_LIST_DIR}/linux/ld_bfd.py" "${COMPILER_OVERRIDE}"
488+
-m "${LD_EMUL}"
489+
--build-id
490+
-static
491+
-z "max-page-size=0x1000"
492+
--defsym RESERVE_TOP="${RESERVE_TOP}"
493+
--script "${CMAKE_CURRENT_LIST_DIR}/linux/nacl_bootstrap.x"
494+
-o "${CMAKE_BINARY_DIR}/src/trusted/service_runtime/nacl_bootstrap_raw"
495+
"${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/nacl_bootstrap.dir/linux/nacl_bootstrap.c.o"
496+
DEPENDS nacl_bootstrap
497+
)
498+
485499
#TODO: bootstrap_raw = bootstrap_env.Command(
486500
#TODO: 'nacl_bootstrap_raw',
487501
#TODO: [bootstrap_obj],

0 commit comments

Comments
 (0)