4
0
mirror of https://github.com/QuasarApp/LIEF.git synced 2025-05-13 03:39:34 +00:00

Forward CXXFLAGS and CFLAGS

This commit is contained in:
Romain Thomas 2021-01-18 16:25:29 +01:00
parent 5b7e6978b9
commit 9974da21ed

@ -190,6 +190,17 @@ class BuildLibrary(build_ext):
env = os.environ
if os.getenv("CXXFLAGS", None) is not None:
cmake_args += [
'-DCMAKE_CXX_FLAGS={}'.format(os.getenv("CXXFLAGS")),
]
if os.getenv("CFLAGS", None) is not None:
cmake_args += [
'-DCMAKE_C_FLAGS={}'.format(os.getenv("CFLAGS")),
]
if platform.system() == "Windows":
from setuptools import msvc