comparison src/compiler.sml @ 1871:c3119c263bd3

Add -ccompiler command line argument This allows user to overwrite the compiler set during the configure phase
author Sergey Mironov <grrwlf@gmail.com>
date Tue, 20 Aug 2013 17:13:50 +0400
parents d6b0ee53dc93
children 9a1097954188
comparison
equal deleted inserted replaced
1870:434921f54f54 1871:c3119c263bd3
1477 val opt = if debug then 1477 val opt = if debug then
1478 "" 1478 ""
1479 else 1479 else
1480 " -O3" 1480 " -O3"
1481 1481
1482 val compile = Config.ccompiler ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " -Wimplicit -Werror -Wno-unused-value" 1482 val compile = (Settings.getCCompiler ()) ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " -Wimplicit -Werror -Wno-unused-value"
1483 ^ opt ^ " -I " ^ !Settings.configInclude 1483 ^ opt ^ " -I " ^ !Settings.configInclude
1484 ^ " " ^ #compile proto 1484 ^ " " ^ #compile proto
1485 ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname 1485 ^ " -c " ^ escapeFilename cname ^ " -o " ^ escapeFilename oname
1486 1486
1487 val linker = Option.getOpt (linker, Config.ccompiler ^ " -Werror" ^ opt ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " " ^ Config.pthreadLibs) 1487 val linker = Option.getOpt (linker, (Settings.getCCompiler ()) ^ " -Werror" ^ opt ^ " " ^ Config.ccArgs ^ " " ^ Config.pthreadCflags ^ " " ^ Config.pthreadLibs)
1488 1488
1489 val ssl = if Settings.getStaticLinking () then 1489 val ssl = if Settings.getStaticLinking () then
1490 Config.openssl ^ " -ldl -lz" 1490 Config.openssl ^ " -ldl -lz"
1491 else 1491 else
1492 Config.openssl 1492 Config.openssl