Skip to content

Commit 70c8593

Browse files
authored
Merge pull request swiftlang#28769 from apple/shahmishal/env-c-launcher
[Build System] Add support to set C and CXX launcher with env …
2 parents 1af2b07 + e50b8f9 commit 70c8593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build_swift/driver_arguments.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99

1010
import multiprocessing
11+
import os
1112

1213
import android.adb.commands
1314

@@ -380,8 +381,10 @@ def create_argument_parser():
380381
help='the absolute path to CXX, the "clang++" compiler for the '
381382
'host platform. Default is auto detected.')
382383
option('--cmake-c-launcher', store_path(executable=True),
384+
default=os.environ.get('C_COMPILER_LAUNCHER', None),
383385
help='the absolute path to set CMAKE_C_COMPILER_LAUNCHER')
384386
option('--cmake-cxx-launcher', store_path(executable=True),
387+
default=os.environ.get('CXX_COMPILER_LAUNCHER', None),
385388
help='the absolute path to set CMAKE_CXX_COMPILER_LAUNCHER')
386389
option('--host-lipo', store_path(executable=True),
387390
help='the absolute path to lipo. Default is auto detected.')

0 commit comments

Comments
 (0)