File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1041,6 +1041,11 @@ def main_normal():
1041
1041
shell .dry_run = args .dry_run
1042
1042
1043
1043
# Prepare and validate toolchain
1044
+ env_toolchain = os .environ .get ('TOOLCHAINS' )
1045
+ if args .darwin_xcrun_toolchain is None :
1046
+ diagnostics .note ('using toolchain {}' .format (env_toolchain ))
1047
+ args .darwin_xcrun_toolchain = env_toolchain
1048
+
1044
1049
toolchain = host_toolchain (xcrun_toolchain = args .darwin_xcrun_toolchain )
1045
1050
os .environ ['TOOLCHAINS' ] = args .darwin_xcrun_toolchain
1046
1051
Original file line number Diff line number Diff line change @@ -317,7 +317,6 @@ def create_argument_parser():
317
317
help = 'the number of parallel build jobs to use' )
318
318
319
319
option ('--darwin-xcrun-toolchain' , store ,
320
- default = defaults .DARWIN_XCRUN_TOOLCHAIN ,
321
320
help = 'the name of the toolchain to use on Darwin' )
322
321
option ('--cmake' , store_path (executable = True ),
323
322
help = 'the path to a CMake executable that will be used to build '
Original file line number Diff line number Diff line change 106
106
defaults .DARWIN_DEPLOYMENT_VERSION_TVOS ,
107
107
'darwin_deployment_version_watchos' :
108
108
defaults .DARWIN_DEPLOYMENT_VERSION_WATCHOS ,
109
- 'darwin_xcrun_toolchain' :
110
- defaults .DARWIN_XCRUN_TOOLCHAIN ,
109
+ 'darwin_xcrun_toolchain' : None ,
111
110
'distcc' : False ,
112
111
'dry_run' : False ,
113
112
'enable_asan' : False ,
You can’t perform that action at this time.
0 commit comments