Skip to content

Commit 397c52e

Browse files
committed
Move to end
1 parent 6c4eb49 commit 397c52e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/jit/_targets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ async def _compile(
123123
) -> _stencils.StencilGroup:
124124
o = tempdir / f"{opname}.o"
125125
args = [
126-
*shlex.split(self.cflags),
127126
f"--target={self.triple}",
128127
"-DPy_BUILD_CORE_MODULE",
129128
"-D_DEBUG" if self.debug else "-DNDEBUG",
@@ -158,6 +157,8 @@ async def _compile(
158157
"-o",
159158
f"{o}",
160159
f"{c}",
160+
# Allow user-provided CFLAGS to override any defaults
161+
*shlex.split(self.cflags),
161162
*self.args,
162163
]
163164
await _llvm.run("clang", args, echo=self.verbose)

0 commit comments

Comments
 (0)