thestig@chromium.org
6edf293f5a
Linux: Detect host g++ version as well as target g++ version.
...
BUG=360082
Review URL: https://codereview.chromium.org/247623003
git-svn-id: http://src.chromium.org/svn/trunk/src/build@265572 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-23 08:20:16 +00:00
bratell@opera.com
e2d16495b0
gyp performance: Add a DoMain version of build/compiler_version
...
No need to start a full python interpreter for compiler_version.py. This saves about 0.6 CPU seconds.
BUG=362075
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/235083003
git-svn-id: http://src.chromium.org/svn/trunk/src/build@264303 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-04-16 20:59:15 +00:00
mithro@mithis.com
fcbccb8ce7
Fix compiler_version.py on systems with non-English locale.
...
The the version string can be localized! The regexs assume English formatting and will fail to match under other localization (such as when the versions dots become commas).
http://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html#Locale-Environment-Variables
BUG=354231
Review URL: https://codereview.chromium.org/207873002
git-svn-id: http://src.chromium.org/svn/trunk/src/build@258867 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-24 03:40:01 +00:00
mithro@mithis.com
9f8894cd69
Revert of Minor fix to regex inside compiler_version.py ( https://codereview.chromium.org/207303004/ )
...
Reason for revert:
The second \. should have remained a .
Chris Dumez
1 minute ago #7
Message was sent while issue was closed.
https://codereview.chromium.org/207303004/diff/1/build/compiler_version.py
File build/compiler_version.py (right):
https://codereview.chromium.org/207303004/diff/1/build/compiler_version.py#ne ...
build/compiler_version.py:31: version_re = re.compile(r"^GNU [^ ]+ .*
(\d+)\.(\d+)\.*?$", re.M)
The last "\.*" looks weird, I think it should be ".*"
Original issue's description:
> Minor fix to regex inside compiler_version.py
>
> These dots where meant to be literal dots, not anything.
>
> BUG=352046
>
> Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258570
TBR=thakis@chromium.org ,thestig@chromium.org,ch.dumez@samsung.com
NOTREECHECKS=true
NOTRY=true
BUG=352046
Review URL: https://codereview.chromium.org/208313002
git-svn-id: http://src.chromium.org/svn/trunk/src/build@258579 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-21 14:48:38 +00:00
mithro@mithis.com
5108a59304
Minor fix to regex inside compiler_version.py
...
These dots where meant to be literal dots, not anything.
BUG=352046
Review URL: https://codereview.chromium.org/207303004
git-svn-id: http://src.chromium.org/svn/trunk/src/build@258570 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-21 14:15:52 +00:00
mithro@mithis.com
70a3c36539
Fixing compiler_version for Fedora.
...
BUG=353433
Review URL: https://codereview.chromium.org/195923004
git-svn-id: http://src.chromium.org/svn/trunk/src/build@257716 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-18 19:29:28 +00:00
mithro@mithis.com
a1d6a7d906
This change helps with two significant problems with Chrome debug
...
builds,
* Slow link times.
* Slow gdb startup times.
Lots more detailed information at http://gcc.gnu.org/wiki/DebugFission
Overall, this improves linking speed of debug Chrome builds on Linux
by ~12% and speeds up gdb by around 30%.
This requires a objcopy with --extract-dwo object (binutils newer then
2.22.52.0.4 // 2.23). Ubuntu Precise only comes with 2.23
BUG=
Review URL: https://codereview.chromium.org/197013010
git-svn-id: http://src.chromium.org/svn/trunk/src/build@257424 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2014-03-17 14:11:21 +00:00
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