From edf8327c926673324d79d30af5ff3f78fc9e9d9b Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sat, 21 Dec 2019 19:52:26 +0100 Subject: [PATCH] Fix windows gcc detection logic on CI --- pygccxml/parser/source_reader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygccxml/parser/source_reader.py b/pygccxml/parser/source_reader.py index b9d34afb..8aaaf6f4 100644 --- a/pygccxml/parser/source_reader.py +++ b/pygccxml/parser/source_reader.py @@ -123,8 +123,8 @@ def __create_command_line_castxml(self, source_file, xmlfile): # Platform specific options if platform.system() == 'Windows': - - if "mingw" or "g++" or "gcc" in self.__config.compiler_path.lower(): + compilers = ("mingw" or "g++" or "gcc") + if compilers in self.__config.compiler_path.lower(): # 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