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 2
2
# Use of this source code is governed by a BSD-style license that can be
3
3
# found in the LICENSE file.
4
4
5
- #FIXME: What to do with this?
6
- set (CPPPATH "${CMAKE_BINARY_DIR} /gen" )
7
-
8
5
# normally comment out -- uncomment out to test the pedantic removal
9
6
# check below.
10
7
#if (LINUX OR APPLE)
11
8
# set_c_cxx_flag("-pedantic")
12
9
# set_c_cxx_flag("-Wall")
13
10
#endif()
14
11
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" )
16
14
17
15
# ----------------------------------------------------------
18
16
# TODO(robertm): this library is too big and needs to be split up
@@ -162,12 +160,14 @@ elseif (APPLE)
162
160
163
161
file (WRITE "${GENERATED_NACL_EXC_C} " "#include <mach/exc.defs>" )
164
162
163
+ # It works with clang but not with default cc (which is clang).
165
164
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} "
168
166
OUTPUT_FILE "${GENERATED_NACL_EXC_DEFS} "
169
167
)
170
168
169
+ include_directories ("${GENERATED_ROOT} " )
170
+
171
171
execute_process (
172
172
COMMAND "${PYTHON} "
173
173
"${CMAKE_CURRENT_LIST_DIR} /osx/run_mig.py"
You can’t perform that action at this time.
0 commit comments