summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2019-01-31 10:55:52 -0800
committerNick Desaulniers <ndesaulniers@google.com>2019-01-31 15:15:01 -0800
commitcf54b6c23f1f41217a553d79a3716cd72b116c90 (patch)
treec0b3018722cf90b9df53b93497cc854ed6dca2e2
parent7fcaba455fc44bc2b587e7c27a4648375e2e91fb (diff)
downloadaarch64-linux-android-4.9-cf54b6c23f1f41217a553d79a3716cd72b116c90.tar.gz
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Change-Id: I93dbf176f3ac391db8ee3f6cb7fe6553c22a876d Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
-rwxr-xr-xbin/a19ee8e2-2589-11e9-a52d-3f0933a56607 (renamed from bin/real-aarch64-linux-android-gcc)bin734964 -> 734964 bytes
-rwxr-xr-xbin/a5962a5a-2589-11e9-b12a-6397e4fbd97d (renamed from bin/real-aarch64-linux-android-g++)bin739060 -> 739060 bytes
-rwxr-xr-xbin/aarch64-linux-android-g++11
-rwxr-xr-xbin/aarch64-linux-android-gcc11
4 files changed, 20 insertions, 2 deletions
diff --git a/bin/real-aarch64-linux-android-gcc b/bin/a19ee8e2-2589-11e9-a52d-3f0933a56607
index d5ac00e..d5ac00e 100755
--- a/bin/real-aarch64-linux-android-gcc
+++ b/bin/a19ee8e2-2589-11e9-a52d-3f0933a56607
Binary files differ
diff --git a/bin/real-aarch64-linux-android-g++ b/bin/a5962a5a-2589-11e9-b12a-6397e4fbd97d
index cc792c2..cc792c2 100755
--- a/bin/real-aarch64-linux-android-g++
+++ b/bin/a5962a5a-2589-11e9-b12a-6397e4fbd97d
Binary files differ
diff --git a/bin/aarch64-linux-android-g++ b/bin/aarch64-linux-android-g++
index 54944a2..329ae34 100755
--- a/bin/aarch64-linux-android-g++
+++ b/bin/aarch64-linux-android-g++
@@ -1,5 +1,6 @@
#!/usr/bin/python
+from __future__ import print_function
import os
import sys
@@ -24,7 +25,7 @@ class CompilerWrapper():
compiler = os.path.basename(os.path.abspath(__file__))
self.real_compiler = os.path.join(
compiler_path,
- "real-" + compiler)
+ "a5962a5a-2589-11e9-b12a-6397e4fbd97d")
self.argv0 = self.real_compiler
def process_gomacc_command(self):
@@ -49,7 +50,15 @@ class CompilerWrapper():
def add_flags(self):
self.args = self.prepend_flags + self.args + self.append_flags
+ def print_deprecation_warning(self):
+ print("Android GCC has been deprecated in favor of Clang, and will be removed from\n"
+ "Android in 2020-01 as per the deprecation plan in:\n"
+ "https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md\n\n",
+ file=sys.stderr)
+
+
def invoke_compiler(self):
+ self.print_deprecation_warning()
self.set_real_compiler()
self.parse_custom_flags()
self.process_gomacc_command()
diff --git a/bin/aarch64-linux-android-gcc b/bin/aarch64-linux-android-gcc
index 54944a2..03632fa 100755
--- a/bin/aarch64-linux-android-gcc
+++ b/bin/aarch64-linux-android-gcc
@@ -1,5 +1,6 @@
#!/usr/bin/python
+from __future__ import print_function
import os
import sys
@@ -24,7 +25,7 @@ class CompilerWrapper():
compiler = os.path.basename(os.path.abspath(__file__))
self.real_compiler = os.path.join(
compiler_path,
- "real-" + compiler)
+ "a19ee8e2-2589-11e9-a52d-3f0933a56607")
self.argv0 = self.real_compiler
def process_gomacc_command(self):
@@ -49,7 +50,15 @@ class CompilerWrapper():
def add_flags(self):
self.args = self.prepend_flags + self.args + self.append_flags
+ def print_deprecation_warning(self):
+ print("Android GCC has been deprecated in favor of Clang, and will be removed from\n"
+ "Android in 2020-01 as per the deprecation plan in:\n"
+ "https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md\n\n",
+ file=sys.stderr)
+
+
def invoke_compiler(self):
+ self.print_deprecation_warning()
self.set_real_compiler()
self.parse_custom_flags()
self.process_gomacc_command()