File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,12 @@ build_cmd_list = [bazel_cmd, "build"]
132
132
append! (build_cmd_list, [" -c" , " $(build_kind) " ])
133
133
push! (build_cmd_list, " --action_env=JULIA=$(Base. julia_cmd (). exec[1 ]) " )
134
134
push! (build_cmd_list, " --repo_env=HERMETIC_PYTHON_VERSION=$(hermetic_python_version) " )
135
- push! (build_cmd_list, " --repo_env=GCC_HOST_COMPILER_PATH=$(gcc_host_compiler_path) " )
136
- push! (build_cmd_list, " --repo_env=CC=$(cc) " )
135
+ if ! isempty (gcc_host_compiler_path)
136
+ push! (build_cmd_list, " --repo_env=GCC_HOST_COMPILER_PATH=$(gcc_host_compiler_path) " )
137
+ end
138
+ if ! isempty (cc)
139
+ push! (build_cmd_list, " --repo_env=CC=$(cc) " )
140
+ end
137
141
push! (build_cmd_list, " --check_visibility=false" )
138
142
push! (build_cmd_list, " --verbose_failures" )
139
143
push! (build_cmd_list, " --jobs=$(parsed_args[" jobs" ]) " )
You can’t perform that action at this time.
0 commit comments