diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2019-01-31 10:55:52 -0800 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2019-01-31 15:15:01 -0800 |
commit | cf54b6c23f1f41217a553d79a3716cd72b116c90 (patch) | |
tree | c0b3018722cf90b9df53b93497cc854ed6dca2e2 | |
parent | 7fcaba455fc44bc2b587e7c27a4648375e2e91fb (diff) | |
download | aarch64-linux-android-4.9-cf54b6c23f1f41217a553d79a3716cd72b116c90.tar.gz |
Add GCC deprecation warning and link to deprecation schedule.ndk-r20bndk-r20-beta3ndk-r20-beta2ndk-r20-beta1ndk-r20android-q-preview-6android-q-preview-5android-q-preview-4android-q-preview-2.5android-q-preview-1android-o-mr1-iot-release-1.0.10ndk-release-r20llvm-r353983
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-x | bin/a19ee8e2-2589-11e9-a52d-3f0933a56607 (renamed from bin/real-aarch64-linux-android-gcc) | bin | 734964 -> 734964 bytes | |||
-rwxr-xr-x | bin/a5962a5a-2589-11e9-b12a-6397e4fbd97d (renamed from bin/real-aarch64-linux-android-g++) | bin | 739060 -> 739060 bytes | |||
-rwxr-xr-x | bin/aarch64-linux-android-g++ | 11 | ||||
-rwxr-xr-x | bin/aarch64-linux-android-gcc | 11 |
4 files changed, 20 insertions, 2 deletions
diff --git a/bin/real-aarch64-linux-android-gcc b/bin/a19ee8e2-2589-11e9-a52d-3f0933a56607 Binary files differindex d5ac00e..d5ac00e 100755 --- a/bin/real-aarch64-linux-android-gcc +++ b/bin/a19ee8e2-2589-11e9-a52d-3f0933a56607 diff --git a/bin/real-aarch64-linux-android-g++ b/bin/a5962a5a-2589-11e9-b12a-6397e4fbd97d Binary files differindex cc792c2..cc792c2 100755 --- a/bin/real-aarch64-linux-android-g++ +++ b/bin/a5962a5a-2589-11e9-b12a-6397e4fbd97d 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() |