File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -196,12 +196,14 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
196
196
}
197
197
}
198
198
}
199
- //
200
- ccoptions.is_cc_tcc = ccompiler.contains ('tcc' ) || ccoptions.guessed_compiler == 'tcc'
201
- ccoptions.is_cc_gcc = ccompiler.contains ('gcc' ) || ccoptions.guessed_compiler == 'gcc'
202
- ccoptions.is_cc_icc = ccompiler.contains ('icc' ) || ccoptions.guessed_compiler == 'icc'
203
- ccoptions.is_cc_msvc = ccompiler.contains ('msvc' ) || ccoptions.guessed_compiler == 'msvc'
204
- ccoptions.is_cc_clang = ccompiler.contains ('clang' ) || ccoptions.guessed_compiler == 'clang'
199
+ ccompiler_file_name := os.file_name (ccompiler)
200
+ ccoptions.is_cc_tcc = ccompiler_file_name.contains ('tcc' ) || ccoptions.guessed_compiler == 'tcc'
201
+ ccoptions.is_cc_gcc = ccompiler_file_name.contains ('gcc' ) || ccoptions.guessed_compiler == 'gcc'
202
+ ccoptions.is_cc_icc = ccompiler_file_name.contains ('icc' ) || ccoptions.guessed_compiler == 'icc'
203
+ ccoptions.is_cc_msvc = ccompiler_file_name.contains ('msvc' )
204
+ || ccoptions.guessed_compiler == 'msvc'
205
+ ccoptions.is_cc_clang = ccompiler_file_name.contains ('clang' )
206
+ || ccoptions.guessed_compiler == 'clang'
205
207
// For C++ we must be very tolerant
206
208
if ccoptions.guessed_compiler.contains ('++' ) {
207
209
ccoptions.args << '-fpermissive'
You can’t perform that action at this time.
0 commit comments