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():
110
110
'names from projects.json enclosed in {} will be '
111
111
'replaced with their value)' ,
112
112
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' )
113
119
return parser .parse_args ()
114
120
115
121
def get_swiftc_path (workspace , args ):
@@ -225,6 +231,10 @@ def build_swift_toolchain(workspace, args):
225
231
'--verbose-build' ,
226
232
'--reconfigure' ,
227
233
]
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 )]
228
238
common .check_execute (build_command , timeout = 9999999 )
229
239
230
240
You can’t perform that action at this time.
0 commit comments