summarylogtreecommitdiffstats
path: root/toolchain_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain_generator.py')
-rwxr-xr-xtoolchain_generator.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain_generator.py b/toolchain_generator.py
index 75e8e34539b3..b9ebb5fcf867 100755
--- a/toolchain_generator.py
+++ b/toolchain_generator.py
@@ -10,9 +10,9 @@ class CrossFileGenerator:
self.arch = arch
self.output_file = output_file
self.need_exe_wrapper = need_exe_wrapper
- self.cflags = os.environ["CFLAGS"]
- self.cxxflags = os.environ["CXXFLAGS"]
- self.ldflags = os.environ["LDFLAGS"]
+ self.cflags = os.environ['CFLAGS'] if 'CFLAGS' in os.environ else ''
+ self.cxxflags = os.environ["CXXFLAGS"] if 'CXXFLAGS' in os.environ else ''
+ self.ldflags = os.environ["LDFLAGS"] if 'LDFLAGS' in os.environ else ''
if self.arch == 'i686-w64-mingw32':
self.cpu_family = "x86"
self.processor = 'i686'