summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2019-01-31 10:35:03 -0800
committerNick Desaulniers <ndesaulniers@google.com>2019-01-31 23:22:25 +0000
commitaee49f6942a6a9801f960112b7b1d82b64f20ba7 (patch)
treec731d5803ed51ad6bed17d58d768f92999b86cd2
parent22f053ccdfd0d73aafcceff3419a5fe3c01e878b (diff)
downloadaarch64-linux-android-4.9-aee49f6942a6a9801f960112b7b1d82b64f20ba7.tar.gz
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md Change-Id: I51275c309b87ec503810579e276042fbe90fcd0a Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
-rwxr-xr-xbin/a8fe5040-2585-11e9-9684-4b547fbede22 (renamed from bin/real-aarch64-linux-android-gcc)bin772640 -> 772640 bytes
-rwxr-xr-xbin/aarch64-linux-android-g++11
-rwxr-xr-xbin/aarch64-linux-android-gcc11
-rwxr-xr-xbin/c2219de2-2586-11e9-8b3d-0bdcf7ee6101 (renamed from bin/real-aarch64-linux-android-g++)bin776736 -> 776736 bytes
4 files changed, 20 insertions, 2 deletions
diff --git a/bin/real-aarch64-linux-android-gcc b/bin/a8fe5040-2585-11e9-9684-4b547fbede22
index cfe211a..cfe211a 100755
--- a/bin/real-aarch64-linux-android-gcc
+++ b/bin/a8fe5040-2585-11e9-9684-4b547fbede22
Binary files differ
diff --git a/bin/aarch64-linux-android-g++ b/bin/aarch64-linux-android-g++
index 54944a2..4ee0963 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)
+ "c2219de2-2586-11e9-8b3d-0bdcf7ee6101")
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..35ef419 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)
+ "a8fe5040-2585-11e9-9684-4b547fbede22")
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/real-aarch64-linux-android-g++ b/bin/c2219de2-2586-11e9-8b3d-0bdcf7ee6101
index efe9a5e..efe9a5e 100755
--- a/bin/real-aarch64-linux-android-g++
+++ b/bin/c2219de2-2586-11e9-8b3d-0bdcf7ee6101
Binary files differ