Move include path logic for develop into setup.py

This commit is contained in:
Kovid Goyal 2023-07-28 10:23:54 +05:30
parent 9dd623658a
commit aab1bf305a
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 3 deletions

View file

@ -438,6 +438,10 @@ def init_env(
set_arches(cflags)
set_arches(ldflags)
if os.environ.get("DEVELOP_ROOT"):
cflags.insert(0, f'-I{os.environ["DEVELOP_ROOT"]}/include')
ldpaths.insert(0, f'-L{os.environ["DEVELOP_ROOT"]}/lib')
return Env(cc, cppflags, cflags, ldflags, library_paths, ccver=ccver, ldpaths=ldpaths, vcs_rev=vcs_rev)