File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/trusted/service_runtime Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22# Use of this source code is governed by a BSD-style license that can be
33# found in the LICENSE file.
44
5- #FIXME: What to do with this?
6- set (CPPPATH "${CMAKE_BINARY_DIR} /gen" )
7-
85# normally comment out -- uncomment out to test the pedantic removal
96# check below.
107#if (LINUX OR APPLE)
118# set_c_cxx_flag("-pedantic")
129# set_c_cxx_flag("-Wall")
1310#endif()
1411
15- set (GENERATED "${CMAKE_BINARY_DIR} /src/trusted/service_runtime" )
12+ set (GENERATED_ROOT "${CMAKE_BINARY_DIR} /gen" )
13+ set (GENERATED "${GENERATED_ROOT} /native_client/src/trusted/service_runtime" )
1614
1715# ----------------------------------------------------------
1816# TODO(robertm): this library is too big and needs to be split up
@@ -162,12 +160,14 @@ elseif (APPLE)
162160
163161 file (WRITE "${GENERATED_NACL_EXC_C} " "#include <mach/exc.defs>" )
164162
163+ # It works with clang but not with default cc (which is clang).
165164 execute_process (
166- COMMAND "${CMAKE_C_COMPILER} " "${CMAKE_C_COMPILER_FLAGS} " -E -
167- INPUT_FILE "${GENERATED_NACL_EXC_C} "
165+ COMMAND "clang" "${CMAKE_C_COMPILER_FLAGS} " -E "${GENERATED_NACL_EXC_C} "
168166 OUTPUT_FILE "${GENERATED_NACL_EXC_DEFS} "
169167 )
170168
169+ include_directories ("${GENERATED_ROOT} " )
170+
171171 execute_process (
172172 COMMAND "${PYTHON} "
173173 "${CMAKE_CURRENT_LIST_DIR} /osx/run_mig.py"
You can’t perform that action at this time.
0 commit comments