Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: build/compiler_version.py

Issue 8667008: Fix python scripts in src/build/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 4 # found in the LICENSE file.
6 5
7 """Compiler version checking tool for gcc 6 """Compiler version checking tool for gcc
8 7
9 Print gcc version as XY if you are running gcc X.Y.*. 8 Print gcc version as XY if you are running gcc X.Y.*.
10 This is used to tweak build flags for gcc 4.4. 9 This is used to tweak build flags for gcc 4.4.
11 """ 10 """
12 11
(...skipping 28 matching lines...) Expand all
41 # Otherwise we check the g++ version. 40 # Otherwise we check the g++ version.
42 gccversion = GetVersion("g++") 41 gccversion = GetVersion("g++")
43 if gccversion != "": 42 if gccversion != "":
44 print gccversion 43 print gccversion
45 return 0 44 return 0
46 45
47 return 1 46 return 1
48 47
49 if __name__ == "__main__": 48 if __name__ == "__main__":
50 sys.exit(main()) 49 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698