summaryrefslogtreecommitdiff
path: root/src/compiler.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-09-17 13:30:56 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-09-17 13:30:56 -0400
commit67e602c219b37abee5755a8935dd6c3d02e6cdcc (patch)
tree1314b05a2e90e459d14fad34719412bee427d5da /src/compiler.sml
parentcd1a502c46a1b3dc20ed62fdcb3dca8aecd2e03f (diff)
Disable GCC inlining to stop goofy errors
Diffstat (limited to 'src/compiler.sml')
-rw-r--r--src/compiler.sml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml
index 05bd53d3..bb1a6add 100644
--- a/src/compiler.sml
+++ b/src/compiler.sml
@@ -907,7 +907,7 @@ fun compileC {cname, oname, ename, libs, profile, debug, link = link'} =
val urweb_o = clibFile "urweb.o"
val memmem_o = clibFile "memmem.o"
- val compile = "gcc " ^ Config.gccArgs ^ " -Wstrict-prototypes -Werror -O3 -I " ^ Config.includ
+ val compile = "gcc " ^ Config.gccArgs ^ " -Wstrict-prototypes -Werror -O3 -fno-inline -I " ^ Config.includ
^ " -c " ^ cname ^ " -o " ^ oname
val link = "gcc -Werror -O3 -lm -lmhash -pthread " ^ Config.gccArgs ^ " " ^ libs ^ " " ^ urweb_o ^ " " ^ oname
^ " " ^ memmem_o ^ " " ^ #link proto ^ " -o " ^ ename