mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 01:18:02 +00:00
Fix for gcc args.
Reviewed by me.
This commit is contained in:
1 parent
43c0db44ea
commit
47694c2d80
2 files changed
+5
-2
No files matched your search
@@ -37,7 +37,8 @@ with (window)
|
||||
"OBJJ_PREPROCESSOR_DEBUG_SYMBOLS",
|
||||
"objj_data",
|
||||
"CPPropertyListCreateData", "CPPropertyListCreateFromData",
|
||||
"kCFPropertyListXMLFormat_v1_0", "kCFPropertyList280NorthFormat_v1_0"
|
||||
"kCFPropertyListXMLFormat_v1_0", "kCFPropertyList280NorthFormat_v1_0",
|
||||
"objj_dictionary"
|
||||
].forEach(function(v) {
|
||||
exports[v] = eval(v);
|
||||
});
|
||||
|
||||
@@ -45,7 +45,9 @@ exports.preprocess = function(inFile, outFile, flags, gccArgs)
|
||||
shouldCheckSyntax = flags & OBJJ_PREPROCESSOR_SYNTAX,
|
||||
shouldCompress = flags & OBJJ_PREPROCESSOR_COMPRESS;
|
||||
|
||||
var gccCommand = "gcc -E -x c -P " + (gccArgs.join(" ") || "") + " " + inFile;
|
||||
gccArgs = gccArgs ? gccArgs.join(" ") : "";
|
||||
|
||||
var gccCommand = "gcc -E -x c -P " + gccArgs + " " + inFile;
|
||||
|
||||
if (!shouldObjjPreprocess)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user