Skip to content

Commit 0962818

Browse files
author
Dane Springmeyer
committed
respect CC and CXX from environ (fixes ccache link)
1 parent cccc4dc commit 0962818

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@
115115
extra_comp_args.append('-mmacosx-version-min=10.8')
116116
linkflags.append('-mmacosx-version-min=10.8')
117117

118-
if not mason_build:
118+
if os.environ.get("CC",False) == False:
119119
os.environ["CC"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')
120+
if os.environ.get("CXX",False) == False:
121+
os.environ["CXX"] = subprocess.check_output([mapnik_config, '--cxx']).rstrip('\n')
120122

121123
setup(
122124
name = "mapnik",

0 commit comments

Comments
 (0)