Skip to content

Commit

Permalink
source_reader: reorder msvc arguments
Browse files Browse the repository at this point in the history
move '--castxml-cc-msvc' after '-D_HAS_TR1=0' so that the subsequent code logic
that builds the parenthesized arguments of '--castxml-cc-msvc' is right after.
  • Loading branch information
ChristosT committed Apr 16, 2024
1 parent 1d35242 commit 67bdfec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pygccxml/parser/source_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,9 @@ def __create_command_line_castxml(self, source_file, xmlfile):
cmd.append('--castxml-cc-gnu ' + self.__config.compiler_path)
else:
# We are using msvc
cmd.append('--castxml-cc-msvc ' +
'"%s"' % self.__config.compiler_path)
if self.__config.compiler == 'msvc9':
cmd.append('"-D_HAS_TR1=0"')
cmd.append('--castxml-cc-msvc ')
else:
# On mac or linux, use gcc or clang (the flag is the same)
cmd.append('--castxml-cc-gnu ')
Expand Down

0 comments on commit 67bdfec

Please sign in to comment.