diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-03-02 11:39:37 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-03-02 11:39:37 +0100 |
commit | 54762c98901b21468fa9ff4205107360c3096cd3 (patch) | |
tree | a765a9af9a19eaae5c4857f9ff4a9d3188708e52 /src/Compile/Exec.hs | |
parent | 0fffb5731271a551afcf08878cb021ead8dd1dae (diff) |
compile: Compile constant array literals
Diffstat (limited to 'src/Compile/Exec.hs')
-rw-r--r-- | src/Compile/Exec.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |