File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ def parse_args():
110110 'names from projects.json enclosed in {} will be '
111111 'replaced with their value)' ,
112112 default = '' )
113+ parser .add_argument ('--cmake-c-launcher' ,
114+ metavar = "PATH" ,
115+ help = 'the absolute path to set CMAKE_C_COMPILER_LAUNCHER for build-script' )
116+ parser .add_argument ('--cmake-cxx-launcher' ,
117+ metavar = 'PATH' ,
118+ help = 'the absolute path to set CMAKE_CXX_COMPILER_LAUNCHER for build-script' )
113119 return parser .parse_args ()
114120
115121def get_swiftc_path (workspace , args ):
@@ -225,6 +231,10 @@ def build_swift_toolchain(workspace, args):
225231 '--verbose-build' ,
226232 '--reconfigure' ,
227233 ]
234+ if args .cmake_c_launcher :
235+ build_command += ['--cmake-c-launcher={}' .format (args .cmake_c_launcher )]
236+ if args .cmake_cxx_launcher :
237+ build_command += ['--cmake-cxx-launcher={}' .format (args .cmake_cxx_launcher )]
228238 common .check_execute (build_command , timeout = 9999999 )
229239
230240
You can’t perform that action at this time.
0 commit comments