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:
parent
5b7e6978b9
commit
9974da21ed
11
setup.py
11
setup.py
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user