summaryrefslogtreecommitdiff
path: root/src/Compile/Exec.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-02 00:21:36 +0100
committerTom Smeding <tom@tomsmeding.com>2025-03-02 00:21:36 +0100
commit0fffb5731271a551afcf08878cb021ead8dd1dae (patch)
treefd4fff6010db0fb63515930708b3d8bfd234c367 /src/Compile/Exec.hs
parent0ebdcff2aa06ee95f95597f2984e2cd335899d37 (diff)
compile: WIP reference-counted arrays
Diffstat (limited to 'src/Compile/Exec.hs')
-rw-r--r--src/Compile/Exec.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compile/Exec.hs b/src/Compile/Exec.hs
index 163be2b..83fcdad 100644
--- a/src/Compile/Exec.hs
+++ b/src/Compile/Exec.hs
@@ -28,7 +28,7 @@ buildKernel csource funnames = do
path <- mkdtemp template
let outso = path ++ "/out.so"
- let args = ["-O3", "-march=native", "-shared", "-fPIC", "-x", "c", "-o", outso, "-"]
+ let args = ["-O3", "-march=native", "-shared", "-fPIC", "-std=c99", "-x", "c", "-o", outso, "-"]
_ <- readProcess "gcc" args csource
hPutStrLn stderr $ "[chad] loading kernel " ++ path