File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -688,13 +688,14 @@ def get_object_filename(input_file):
688
688
def compile_source_file (input_file ):
689
689
logger .debug (f'compiling source file: { input_file } ' )
690
690
output_file = get_object_filename (input_file )
691
- if get_file_suffix (input_file ) in ASSEMBLY_EXTENSIONS :
691
+ ext = get_file_suffix (input_file )
692
+ if ext in ASSEMBLY_EXTENSIONS :
692
693
cmd = get_clang_command_asm ()
693
- elif get_file_suffix ( input_file ) in PREPROCESSED_EXTENSIONS :
694
+ elif ext in PREPROCESSED_EXTENSIONS :
694
695
cmd = get_clang_command_preprocessed ()
695
696
else :
696
697
cmd = get_clang_command ()
697
- if get_file_suffix ( input_file ) in [ '.pcm' ] :
698
+ if ext == '.pcm' :
698
699
cmd = [c for c in cmd if not c .startswith ('-fprebuilt-module-path=' )]
699
700
cmd += compile_args + ['-c' , input_file , '-o' , output_file ]
700
701
if options .requested_debug == '-gsplit-dwarf' :
You can’t perform that action at this time.
0 commit comments