Use treble_linker_namespace instead of treble.

More specific. Treble is being removed.

Bug: 62019611
Test: manual
Change-Id: I94c21c6a5cb6a258bfb36a0b7da23abdc73a67fb
This commit is contained in:
Steven Moreland 2017-12-13 14:11:26 -08:00
parent 78b40e8fe1
commit 96bbc5ca87
2 changed files with 3 additions and 3 deletions

View File

@ -1419,8 +1419,8 @@ cc_library_static {
},
},
product_variables: {
treble: {
cflags: ["-D__ANDROID_TREBLE__"],
treble_linker_namespaces: {
cflags: ["-DTREBLE_LINKER_NAMESPACES"],
},
},
cppflags: ["-Wold-style-cast"],

View File

@ -40,7 +40,7 @@ static const char* init_sh_path() {
* in $PATH for the vendor shell, simply return the system shell.
*/
#ifdef __ANDROID_TREBLE__
#ifdef TREBLE_LINKER_NAMESPACES
/* look for /system or /vendor prefix */
char exe_path[strlen(VENDOR_PREFIX)];
ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path));