diff options
author | Dan Albert <danalbert@google.com> | 2018-04-06 16:15:37 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-04-12 13:40:02 -0700 |
commit | 16bc639c321d66327155eb5477dc277e3d86676a (patch) | |
tree | e81cf97dcb75dc52ca9ea994e42be450372526ae /build/tools | |
parent | 74094ff89d47ddfa34de0f6d96f51ef7fa04c86d (diff) | |
download | ndk-16bc639c321d66327155eb5477dc277e3d86676a.tar.gz |
Pass the API level via the Clang driver.
We're starting to add logic to the driver to behave differently based
on the NDK API level. For now it does pass -D__ANDROID_API__ for us,
so we should start taking advantage of that.
Test: ./checkbuild.py && ./run_tests.py
Bug: None
Change-Id: Ic12124e65a68c40bfb5a0a02b7224fc7ade7e635
Diffstat (limited to 'build/tools')
-rwxr-xr-x | build/tools/make_standalone_toolchain.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/build/tools/make_standalone_toolchain.py b/build/tools/make_standalone_toolchain.py index d7b57fd1b..a5f8097c2 100755 --- a/build/tools/make_standalone_toolchain.py +++ b/build/tools/make_standalone_toolchain.py @@ -207,8 +207,7 @@ def make_clang_scripts(install_dir, triple, api, windows): arch = 'armv7a' # Target armv7, not armv5. target = '-'.join([arch, 'none', os_name, env]) - common_flags = '-target {}'.format(target) - common_flags += ' -D__ANDROID_API__={}'.format(api) + common_flags = '-target {}{}'.format(target, api) if arch == 'i686': common_flags += ' -mstackrealign' |