From 54762c98901b21468fa9ff4205107360c3096cd3 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 2 Mar 2025 11:39:37 +0100 Subject: compile: Compile constant array literals --- src/Compile/Exec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compile') diff --git a/src/Compile/Exec.hs b/src/Compile/Exec.hs index 83fcdad..7c5cb79 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", "-std=c99", "-x", "c", "-o", outso, "-"] + let args = ["-O3", "-march=native", "-shared", "-fPIC", "-std=c99", "-x", "c", "-o", outso, "-", "-Wall", "-Wextra", "-Wno-unused-parameter"] _ <- readProcess "gcc" args csource hPutStrLn stderr $ "[chad] loading kernel " ++ path -- cgit v1.2.3-70-g09d2