File tree Expand file tree Collapse file tree 9 files changed +16
-1
lines changed Expand file tree Collapse file tree 9 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ function(platform name)
6868 return ()
6969 endif ()
7070
71+ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /clang.cfg)
72+ file (READ ${CMAKE_CURRENT_SOURCE_DIR} /clang.cfg CONFIG)
73+ endif ()
74+
7175 # Add Clang configuration file.
7276 set (clang_config ${CMAKE_CURRENT_BINARY_DIR} /mos-${PLATFORM} .cfg)
7377 if (PARENT)
Original file line number Diff line number Diff line change 1+ -mlto-zp =206
Original file line number Diff line number Diff line change 1+ -mlto-zp =110
Original file line number Diff line number Diff line change 44-isystem <CFGDIR>/../mos-platform/${PLATFORM}/include
55-L<CFGDIR>/../mos-platform/${PLATFORM}/lib
66
7+ # Include target-specific flags.
8+ ${CONFIG}
9+
710# Include parent configuration afterwards to give it lesser precedence.
811@mos-${PARENT}.cfg
9-
Original file line number Diff line number Diff line change 1+ -mlto-zp =182
Original file line number Diff line number Diff line change 1+ -mlto-zp =224
Original file line number Diff line number Diff line change 1+ -mlto-zp =222
Original file line number Diff line number Diff line change 1111# Place directories in include and linker search paths.
1212-isystem <CFGDIR>/../mos-platform/${PLATFORM}/include
1313-L<CFGDIR>/../mos-platform/${PLATFORM}/lib
14+
15+ # Include target-specific flags.
16+ ${CONFIG}
Original file line number Diff line number Diff line change 1+ -mlto-zp =224
You can’t perform that action at this time.
0 commit comments