Skip to content

Commit 244554b

Browse files
committed
source_reader: reorder msvc arguments
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.
1 parent fa8cfb5 commit 244554b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pygccxml/parser/source_reader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@ def __create_command_line_castxml(self, source_file, xmlfile):
132132
cmd.append('--castxml-cc-gnu ' + self.__config.compiler_path)
133133
else:
134134
# We are using msvc
135-
cmd.append('--castxml-cc-msvc ' +
136-
'"%s"' % self.__config.compiler_path)
137135
if self.__config.compiler == 'msvc9':
138136
cmd.append('"-D_HAS_TR1=0"')
137+
cmd.append('--castxml-cc-msvc ')
139138
else:
140139
# On mac or linux, use gcc or clang (the flag is the same)
141140
cmd.append('--castxml-cc-gnu ')

0 commit comments

Comments
 (0)