michaelbai@chromium.org
94ff9c9d27
Removed CXX_target for Android
...
Don't rely on compiler_version.py, we pass in the gcc_version for Android
Also revert the previous compiler_version.py change.
BUG=143889
Review URL: https://chromiumcodereview.appspot.com/11185059
git-svn-id: http://src.chromium.org/svn/trunk/src/build@162808 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-10-18 22:08:06 +00:00
michaelbai@chromium.org
6443086c0f
Also detect the CXX_target enviroment vairiable for compiler version
...
The ninja's cross compile mode still uses CXX_target as the target compiler
which needs to be detected before the host one.
This CL might be reverted once the ninja use CXX as target compiler.
BUG=
Review URL: https://chromiumcodereview.appspot.com/10837005
git-svn-id: http://src.chromium.org/svn/trunk/src/build@150300 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-08-07 07:46:52 +00:00
cwolfe@chromium.org
e6b20c6cf4
compiler_version: suppress stderr unless command fails
...
gyp considers a shell variable substitution to have failed if it
generates any output to stderr, even if the exit status was zero.
This causes problems when gomacc automatically starts its proxy,
which helpfully reports "GOMA: Starting compiler proxy" to stderr.
Fixed by dropping stderr unless the underlying process returns
a non-zero exit status.
BUG=chromium-os:28670
TEST=Ran hooks normally and inside CrOS chroot, with and without
$CXX pointing to goma. A $CXX which writes to stderr and then
exits with failure still prints its output before the exception.
Review URL: http://codereview.chromium.org/10288005
git-svn-id: http://src.chromium.org/svn/trunk/src/build@135663 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-05-07 17:24:49 +00:00
maruel@chromium.org
628d2696f1
Fix python scripts in src/build/
...
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent
Also fix EOF LF to be only one.
TBR=michaelbai@chromium.org
BUG=105108
TEST=
Review URL: http://codereview.chromium.org/8667008
git-svn-id: http://src.chromium.org/svn/trunk/src/build@111385 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2011-11-23 19:13:44 +00:00
evan@chromium.org
8c366d88b8
linux: compiler_version.py tweak to work on gcc 4.4
...
The regex didn't work for GCC = 4.4.
Review URL: http://codereview.chromium.org/341085
git-svn-id: http://src.chromium.org/svn/trunk/src/build@30847 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-11-03 19:27:51 +00:00
craig.schlenter@chromium.org
b652947930
Linux: Autodetect and change build flags when using gcc 4.4.
...
This runs g++ -dumpversion (or $CXX) to establish the compiler version
and set the gyp gcc_version variable automatically.
BUG=25209
Review URL: http://codereview.chromium.org/339046
git-svn-id: http://src.chromium.org/svn/trunk/src/build@30824 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2009-11-03 17:32:10 +00:00