Index: build/config/gcc/gcc_version.gni |
diff --git a/build/config/gcc/gcc_version.gni b/build/config/gcc/gcc_version.gni |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d4c70c309356185164de3a3cc298113db9e27a5e |
--- /dev/null |
+++ b/build/config/gcc/gcc_version.gni |
@@ -0,0 +1,11 @@ |
+# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+declare_args() { |
+ if (is_android) { |
+ gcc_version = 48 |
+ } else { |
+ gcc_version = exec_script("../../compiler_version.py", [ "host", "compiler" ], "value") |
+ } |
+} |