Skip to content

Commit

Permalink
Turn on optimization for R shlib builds
Browse files Browse the repository at this point in the history
  • Loading branch information
arendsee committed Jan 1, 2025
1 parent bffc17f commit dd7c1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Morloc/CodeGenerator/SystemConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ configureAll verbose force config = do
let tmpCFile = tmpDir </> "x.c"
soPath = libDir </> "libmorloc.so"
TIO.writeFile tmpCFile ("#include \"" <> MT.pack libmorlocPath <> "\"")
let gccArgs = [ "-shared", "-o", soPath, "-fPIC", tmpCFile ]
let gccArgs = [ "-O", "-shared", "-o", soPath, "-fPIC", tmpCFile ]
callProcess "gcc" gccArgs
removeFile tmpCFile

Expand Down

0 comments on commit dd7c1ce

Please sign in to comment.