diff options
author | Tim Northover <tnorthover@apple.com> | 2014-01-21 12:38:02 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-01-21 12:38:02 +0000 |
commit | 694fa6bcc4ee967deea7d99d4c2d04854174fe12 (patch) | |
tree | 81a26cdb317dfaeae370294aeb43a614f5ea59a3 /make | |
parent | 406313c5f8246a585d14d3f3d9a7d5fd655e795e (diff) |
Macho-embedded: update build script for newer Clang behaviour.
Clang now uses the *-apple-macho triples for embedded targets using MachO. The
environment makes less pretences to be running an actual Mach kernel with all
the support that would imply, so a few changes are needed to the build scripts:
+ The Apple way of detecting endianness applies in all cases so drop the
__MACH__ test.
+ A quick rename since "darwin_embedded" no longer makes any sense. If there's
no Mach going on, there's certainly no Darwin.
+ Change how we test for support for a platform. The functions we build don't
need any SDK support (stdio.h, ...) so we don't need to check for it.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r-- | make/platform/clang_macho_embedded.mk (renamed from make/platform/clang_darwin_embedded.mk) | 5 | ||||
-rw-r--r-- | make/platform/clang_macho_embedded_test_input.c | 0 |
2 files changed, 2 insertions, 3 deletions
diff --git a/make/platform/clang_darwin_embedded.mk b/make/platform/clang_macho_embedded.mk index 4398c12ee..d80bfa921 100644 --- a/make/platform/clang_darwin_embedded.mk +++ b/make/platform/clang_macho_embedded.mk @@ -14,13 +14,12 @@ CheckArches = \ for arch in $(1); do \ if $(CC) -arch $$arch -c \ -integrated-as \ - $(ProjSrcRoot)/make/platform/clang_darwin_test_input.c \ - -isysroot $(ProjSrcRoot)/SDKs/darwin \ + $(ProjSrcRoot)/make/platform/clang_macho_embedded_test_input.c \ -o /dev/null > /dev/null 2> /dev/null; then \ result="$$result$$arch "; \ else \ printf 1>&2 \ - "warning: clang_darwin.mk: dropping arch '$$arch' from lib '$(2)'\n"; \ + "warning: clang_macho_embedded.mk: dropping arch '$$arch' from lib '$(2)'\n"; \ fi; \ done; \ echo $$result) diff --git a/make/platform/clang_macho_embedded_test_input.c b/make/platform/clang_macho_embedded_test_input.c new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/make/platform/clang_macho_embedded_test_input.c |