diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-28 15:05:16 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-28 15:05:16 -0400 |
commit | e0f5b40bb999cf78e9ad479d8004cf00ed7b3059 (patch) | |
tree | 8e0aad54166cad58304b8a79fca0862592693969 /src | |
parent | 5d118aafe9b7cecdb429836b61bb9fdf6e8fc24e (diff) |
GCCARGS configure option
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler.sml | 2 | ||||
-rw-r--r-- | src/config.sig | 2 | ||||
-rw-r--r-- | src/config.sml.in | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml index 5d48287b..1f88705c 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -511,7 +511,7 @@ fun compileC {cname, oname, ename, libs} = val urweb_o = clibFile "urweb.o" val driver_o = clibFile "driver.o" - val compile = "gcc -Wstrict-prototypes -Werror -O3 -I include -c " ^ cname ^ " -o " ^ oname + val compile = "gcc " ^ Config.gccArgs ^ " -Wstrict-prototypes -Werror -O3 -I include -c " ^ cname ^ " -o " ^ oname val link = "gcc -Werror -O3 -lm -pthread " ^ libs ^ " " ^ urweb_o ^ " " ^ oname ^ " " ^ driver_o ^ " -o " ^ ename in if not (OS.Process.isSuccess (OS.Process.system compile)) then diff --git a/src/config.sig b/src/config.sig index 890bd9ab..6075482e 100644 --- a/src/config.sig +++ b/src/config.sig @@ -6,4 +6,6 @@ signature CONFIG = sig val libUr : string val libC : string + + val gccArgs : string end diff --git a/src/config.sml.in b/src/config.sml.in index d1eb5025..9e53986b 100644 --- a/src/config.sml.in +++ b/src/config.sml.in @@ -10,4 +10,6 @@ val libUr = OS.Path.joinDirFile {dir = lib, val libC = OS.Path.joinDirFile {dir = lib, file = "c"} +val gccArgs = "@GCCARGS@" + end |