We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4eb49 commit 397c52eCopy full SHA for 397c52e
1 file changed
Tools/jit/_targets.py
@@ -123,7 +123,6 @@ async def _compile(
123
) -> _stencils.StencilGroup:
124
o = tempdir / f"{opname}.o"
125
args = [
126
- *shlex.split(self.cflags),
127
f"--target={self.triple}",
128
"-DPy_BUILD_CORE_MODULE",
129
"-D_DEBUG" if self.debug else "-DNDEBUG",
@@ -158,6 +157,8 @@ async def _compile(
158
157
"-o",
159
f"{o}",
160
f"{c}",
+ # Allow user-provided CFLAGS to override any defaults
161
+ *shlex.split(self.cflags),
162
*self.args,
163
]
164
await _llvm.run("clang", args, echo=self.verbose)
0 commit comments