Skip to content

Commit

Permalink
Fix logic for compiler detection
Browse files Browse the repository at this point in the history
  • Loading branch information
iMichka committed Jan 13, 2020
1 parent 96cbfc5 commit 6dea344
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pygccxml/parser/source_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ def __create_command_line_castxml(self, source_file, xmlfile):

# Platform specific options
if platform.system() == 'Windows':
compilers = ("mingw" or "g++" or "gcc")
if compilers in self.__config.compiler_path.lower():
compilers = ("mingw", "g++", "gcc")
compiler_path = self.__config.compiler_path.lower()
if any(compiler in compiler_path for compiler in compilers):
# Look at the compiler path. This is a bad way
# to find out if we are using mingw; but it
# should probably work in most of the cases
Expand Down

0 comments on commit 6dea344

Please sign in to comment.