diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-07-10 11:47:42 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-07-10 11:47:42 -0700 |
commit | e829df9229cdc9ffbdfce69009bfdaae05caa58a (patch) | |
tree | 357353ba568fdf00b1edae1091c0e22e4606ff63 | |
parent | dc061bc9a5eb7ad462b78e5806088648b787dbee (diff) | |
download | android_frameworks_compile_slang-e829df9229cdc9ffbdfce69009bfdaae05caa58a.tar.gz android_frameworks_compile_slang-e829df9229cdc9ffbdfce69009bfdaae05caa58a.tar.bz2 android_frameworks_compile_slang-e829df9229cdc9ffbdfce69009bfdaae05caa58a.zip |
clang and 10.9 assembler fixes:cm-10.1.3-RC2cm-10.1.3-RC1cm-10.1.3cm-10.1
Warnings are treated as errors (-Werror), so do not warn on nested anon types
or unused private fields. gcc does not, so that is why gcc does not error out.
Darwin 10.9 assembler requires a section name and segment name. Just leave
the latter as blank./
Change-Id: I47dd21076f8b2a5e7beb6da74a0a187555b398eb
-rw-r--r-- | Android.mk | 4 | ||||
-rwxr-xr-x | slangdata.py | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -25,6 +25,10 @@ local_cflags_for_slang += -D__DISABLE_ASSERTS endif local_cflags_for_slang += -DTARGET_BUILD_VARIANT=$(TARGET_BUILD_VARIANT) +ifeq ($(mac_sdk_version),10.9) +local_cflags_for_slang += -Wno-nested-anon-types -Wno-unused-private-field +endif + ifeq "REL" "$(PLATFORM_VERSION_CODENAME)" RS_VERSION := $(PLATFORM_SDK_VERSION) else diff --git a/slangdata.py b/slangdata.py index 2fb038a..7d5d469 100755 --- a/slangdata.py +++ b/slangdata.py @@ -33,7 +33,7 @@ def PrintHeader(var_name): * prefixing for you.\n\ */\n\ .globl _%s\n\ - .section .rodata,\n\ + .section .rodata,\"\"\n\ .align 8\n\ _%s:\n\ #else\n\ |