| OLD | NEW |
| 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 Loading... |
| 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()) |
| OLD | NEW |