diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-15 21:41:14 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-15 21:41:14 +0000 |
commit | 714ee613903ded7316d2067f519a0476ff47b5f1 (patch) | |
tree | 5212842de125d645fea163644699a8a60feb25c8 | |
parent | b2487ef760e02aae328d3fda5ac925bec63dc258 (diff) | |
parent | e1258daf2fadde69249612f3f447b6841abdb4b2 (diff) | |
download | llvm-714ee613903ded7316d2067f519a0476ff47b5f1.tar.gz |
Snap for 8730993 from e1258daf2fadde69249612f3f447b6841abdb4b2 to mainline-tzdata3-releaseaml_tz3_314012070aml_tz3_314012050aml_tz3_314012010aml_tz3_313110000aml_tz3_312511020aml_tz3_312511010aml_tz3_312410020aml_tz3_312410010android12-mainline-tzdata3-releaseaml_tz3_314012010
Change-Id: I52eb1f04c3f3e6d3f88d9eb56a628a972fe73d86
-rw-r--r-- | host/include/llvm/Config/config.h | 4 | ||||
-rw-r--r-- | include/llvm/Analysis/TargetLibraryInfo.h | 15 | ||||
-rw-r--r-- | lib/Support/DynamicLibrary.cpp | 2 | ||||
-rw-r--r-- | soong/llvm.go | 4 |
4 files changed, 3 insertions, 22 deletions
diff --git a/host/include/llvm/Config/config.h b/host/include/llvm/Config/config.h index ce0c15d9184f..eb6c81d1ec1d 100644 --- a/host/include/llvm/Config/config.h +++ b/host/include/llvm/Config/config.h @@ -115,7 +115,7 @@ #define HAVE_ERROR_T 1 /* Define to 1 if you have the <execinfo.h> header file. */ -#if !defined(__BIONIC__) && !defined(ANDROID_HOST_MUSL) +#ifndef __BIONIC__ #define HAVE_EXECINFO_H 1 #endif @@ -247,7 +247,7 @@ /* #undef HAVE_MACH_O_DYLD_H */ /* Define if mallinfo() is available on this platform. */ -#if !defined(__APPLE__) && !defined(ANDROID_HOST_MUSL) +#if !defined(__APPLE__) #define HAVE_MALLINFO 1 #else /* #undef HAVE_MALLINFO */ diff --git a/include/llvm/Analysis/TargetLibraryInfo.h b/include/llvm/Analysis/TargetLibraryInfo.h index 48cbd9b640eb..02203126f05e 100644 --- a/include/llvm/Analysis/TargetLibraryInfo.h +++ b/include/llvm/Analysis/TargetLibraryInfo.h @@ -27,21 +27,6 @@ #undef ftello #endif #endif // _WIN32 - -#ifdef ANDROID_HOST_MUSL -# ifdef fopen64 -# undef fopen64 -# endif -# ifdef fseeko64 -# undef fseeko64 -# endif -# ifdef ftello64 -# undef ftello64 -# endif -# ifdef tmpfile64 -# undef tmpfile64 -# endif -#endif // END ANDROID-SPECIFIC namespace llvm { diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp index 3fdea209151b..9a7aeb50a216 100644 --- a/lib/Support/DynamicLibrary.cpp +++ b/lib/Support/DynamicLibrary.cpp @@ -143,7 +143,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) { // On linux we have a weird situation. The stderr/out/in symbols are both // macros and global variables because of standards requirements. So, we // boldly use the EXPLICIT_SYMBOL macro without checking for a #define first. -#if defined(__linux__) and !defined(__ANDROID__) && !defined(ANDROID_HOST_MUSL) +#if defined(__linux__) and !defined(__ANDROID__) { EXPLICIT_SYMBOL(stderr); EXPLICIT_SYMBOL(stdout); diff --git a/soong/llvm.go b/soong/llvm.go index 6a38fb56aec8..edbc9cb95d5c 100644 --- a/soong/llvm.go +++ b/soong/llvm.go @@ -89,9 +89,6 @@ func forceBuildLlvmComponents(ctx android.LoadHookContext) { if !forceBuild { type props struct { Target struct { - Darwin_arm64 struct { - Enabled *bool - } Host struct { Enabled *bool } @@ -101,7 +98,6 @@ func forceBuildLlvmComponents(ctx android.LoadHookContext) { } } p := &props{} - p.Target.Darwin_arm64.Enabled = proptools.BoolPtr(true) p.Target.Host.Enabled = proptools.BoolPtr(false) p.Target.Linux_bionic_arm64.Enabled = proptools.BoolPtr(true) ctx.AppendProperties(p) |