Index: Source/build/scripts/scripts.gypi |
diff --git a/Source/build/scripts/scripts.gypi b/Source/build/scripts/scripts.gypi |
index 099b598be8fa6e287b1b0053bb6fa7d3d086ee05..e3783218991e4e84d85d9a1d41e3a8343eaba8b0 100644 |
--- a/Source/build/scripts/scripts.gypi |
+++ b/Source/build/scripts/scripts.gypi |
@@ -34,5 +34,26 @@ |
'templates/ElementWrapperFactory.cpp.tmpl', |
'templates/ElementWrapperFactory.h.tmpl', |
], |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ # Using native perl rather than cygwin perl cuts execution time |
+ # of idl preprocessing rules by a bit more than 50%. |
+ 'perl_exe': '<(DEPTH)/third_party/perl/perl/bin/perl.exe', |
+ 'gperf_exe': '<(DEPTH)/third_party/gperf/bin/gperf.exe', |
+ 'bison_exe': '<(DEPTH)/third_party/bison/bin/bison.exe', |
+ # Using cl instead of cygwin gcc cuts the processing time from |
+ # 1m58s to 0m52s. |
+ 'preprocessor': '--preprocessor "cl.exe -nologo -EP -TP"', |
+ },{ |
+ 'perl_exe': 'perl', |
+ 'gperf_exe': 'gperf', |
+ 'bison_exe': 'bison', |
+ # We specify a preprocess so it happens locally and won't get |
+ # distributed to goma. |
+ # FIXME: /usr/bin/gcc won't exist on OSX forever. We want to |
+ # use /usr/bin/clang once we require Xcode 4.x. |
+ 'preprocessor': '--preprocessor "/usr/bin/gcc -E -P -x c++"' |
+ }], |
+ ], |
}, |
} |