Skip to content

Commit f6cc559

Browse files
inject CPPFLAGS as TARGET_CFLAGS
1 parent 0d15063 commit f6cc559

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

recipes/luajit/all/conanfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ def _make_arguments(self):
105105
if "clang" in str(self.settings.compiler):
106106
args.append("DEFAULT_CC=clang")
107107

108+
# upstream doesn't read CPPFLAGS, inject them manually
109+
cppflags = AutotoolsToolchain(self).environment().vars(self).get("CPPFLAGS")
110+
args.append(f"TARGET_CFLAGS='{cppflags}'")
111+
108112
if self.settings.os == "Macos" and self._apple_deployment_target():
109113
args.append(f"MACOSX_DEPLOYMENT_TARGET={self._apple_deployment_target()}")
110114
elif self.settings.os == "iOS":

0 commit comments

Comments
 (0)