From dc503f65ec5414f0658b5bfabde1bef75e725cf6 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 15 Jul 2020 17:22:18 -0700 Subject: [PATCH] Create per-API versions of the CRT objects. Test: treehugger Bug: http://b/159925977 Change-Id: I3ad629f9370503b26f4a73787bccb3f669c41a0a --- libc/Android.bp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libc/Android.bp b/libc/Android.bp index 071e47b14..c7750ffa4 100644 --- a/libc/Android.bp +++ b/libc/Android.bp @@ -2001,8 +2001,10 @@ cc_defaults { "//apex_available:platform", "//apex_available:anyapex", ], - // crt* objects are used by most cc_binary/cc_library in "anyapex" - min_sdk_version: "apex_inherit", + // Generate NDK variants of the CRT objects for every supported API level. + min_sdk_version: "16", + stl: "none", + crt: true, cflags: [ "-Wno-gcc-compat", "-Wall",