From 7ca8b67c21513d3cd236f47332afdd1be1cb1569 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 24 Apr 2020 15:43:48 +0100 Subject: Use ART_TARGET_ANDROID instead of __ANDROID__ On golem, we build for ART_TARGET_LINUX, which doesn't have support for linkerconfig. Therefore, guard all linker namespace code on ART_TARGET_ANDROID instead of __ANDROID__ (which is unfortunately not under ART's control). Test: build for golem and run Bug: 154074847 Change-Id: I7a2b81918177704b42d8aafbd6d7e9d06d34e5f4 --- libnativeloader/native_loader_namespace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libnativeloader/native_loader_namespace.h') diff --git a/libnativeloader/native_loader_namespace.h b/libnativeloader/native_loader_namespace.h index ee84f61cd8..a295d18f6a 100644 --- a/libnativeloader/native_loader_namespace.h +++ b/libnativeloader/native_loader_namespace.h @@ -17,7 +17,7 @@ #ifndef ART_LIBNATIVELOADER_NATIVE_LOADER_NAMESPACE_H_ #define ART_LIBNATIVELOADER_NATIVE_LOADER_NAMESPACE_H_ -#if defined(__ANDROID__) +#if defined(ART_TARGET_ANDROID) #include #include @@ -73,6 +73,6 @@ struct NativeLoaderNamespace { }; } // namespace android -#endif // #if defined(__ANDROID__) +#endif // #if defined(ART_TARGET_ANDROID) #endif // ART_LIBNATIVELOADER_NATIVE_LOADER_NAMESPACE_H_ -- cgit v1.2.3