From 0fffb5731271a551afcf08878cb021ead8dd1dae Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 2 Mar 2025 00:21:36 +0100 Subject: compile: WIP reference-counted arrays --- src/Compile/Exec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compile/Exec.hs') 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 -- cgit v1.2.3-70-g09d2