Mercurial > urweb
comparison src/compiler.sml @ 1516:c4f39b49aa2d
A few more tweaks to support Clang (including ending use of nested functions)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 23 Jul 2011 16:27:04 -0400 |
parents | 8c65218920cf |
children | 52fbd8534ef3 |
comparison
equal
deleted
inserted
replaced
1515:8c65218920cf | 1516:c4f39b49aa2d |
---|---|
1318 val lib = if Settings.getStaticLinking () then | 1318 val lib = if Settings.getStaticLinking () then |
1319 #linkStatic proto ^ " " ^ Config.lib ^ "/../liburweb.a" | 1319 #linkStatic proto ^ " " ^ Config.lib ^ "/../liburweb.a" |
1320 else | 1320 else |
1321 "-L" ^ Config.lib ^ "/.. -lurweb " ^ #linkDynamic proto | 1321 "-L" ^ Config.lib ^ "/.. -lurweb " ^ #linkDynamic proto |
1322 | 1322 |
1323 val compile = Config.ccompiler ^ " " ^ Config.gccArgs ^ " -Wimplicit -Werror -O3 -I " ^ Config.includ | 1323 val compile = Config.ccompiler ^ " " ^ Config.gccArgs ^ " -Wimplicit -Werror -Wno-unused-value -O3 -I " ^ Config.includ |
1324 ^ " " ^ #compile proto | 1324 ^ " " ^ #compile proto |
1325 ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname | 1325 ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname |
1326 | 1326 |
1327 val link = Config.ccompiler ^ " -Werror -O3 -lm -pthread " ^ Config.gccArgs ^ " " ^ lib ^ " " ^ Config.openssl ^ " " ^ escapeFilename oname | 1327 val link = Config.ccompiler ^ " -Werror -O3 -lm -pthread " ^ Config.gccArgs ^ " " ^ lib ^ " " ^ Config.openssl ^ " " ^ escapeFilename oname |
1328 ^ " -o " ^ escapeFilename ename ^ " " ^ libs | 1328 ^ " -o " ^ escapeFilename ename ^ " " ^ libs |