| Index: third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm (revision 54848)
|
| +++ third_party/WebKit/WebCore/bindings/scripts/IDLParser.pm (working copy)
|
| @@ -64,7 +64,13 @@
|
| $parentsOnly = shift;
|
|
|
| if (!$preprocessor) {
|
| - $preprocessor = "/usr/bin/gcc -E -P -x c++";
|
| + # Detect OS. If Solaris, use /usr/sfw/bin/gcc.
|
| + require Config;
|
| + if (($Config::Config{'osname'})=~/solaris/i){
|
| + $preprocessor = "/usr/sfw/bin/gcc -E -P -x c++";
|
| + } else {
|
| + $preprocessor = "/usr/bin/gcc -E -P -x c++";
|
| + }
|
| }
|
|
|
| if (!$defines) {
|
|
|