summaryrefslogtreecommitdiffstats
path: root/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
Commit message (Collapse)AuthorAgeFilesLines
...
* [CMake] [darwin] [builtins] Add INSTALL_DIR to darwin_lipo_libsChris Bieneman2015-10-021-5/+11
| | | | | | The darwin and macho_embedded libraries get installed to different locations, so we need to feed through an INSTALL_PATH. llvm-svn: 249199
* [CMake] Workaround for the lipo output directory not being created.Chris Bieneman2015-10-021-0/+1
| | | | | | This should resolve an issue reported by mclow. llvm-svn: 249158
* [CMake] [builtins] [macho_embedded] Separate out the 64-bit thumb builtins ↵Chris Bieneman2015-10-011-1/+2
| | | | | | | | so they don't get included on 'm' architectures. NFC. This should help make the compiler-rt build less noisy. llvm-svn: 249084
* [CMake] [builtins] [macho_embedded] Don't pass -mfloat-abi=hard flag to x86 ↵Chris Bieneman2015-10-011-1/+5
| | | | | | because the compiler ignores it and complains. llvm-svn: 249076
* [CMake] [Darwin] [macho_embedded] Specify the version min explicitly.Chris Bieneman2015-09-301-0/+1
| | | | | | We need to set the OS X deployment target on the macho_embedded libraries to match the outputs from the autoconf build system. llvm-svn: 248944
* [CMake] [Darwin] [builtins] Change condition for skipping cc_kext to be ↵Chris Bieneman2015-09-301-1/+1
| | | | | | | | setting based. This is needed because we need to skip cc_kext generation for more than just the simulator builds. llvm-svn: 248939
* [CMake] [macho_embedded] We need to set some extra flags when building the ↵Chris Bieneman2015-09-291-1/+6
| | | | | | | | macho_embedded builtins. If we don't specify the arm target the float ABI compiler flags get ignored. llvm-svn: 248853
* [CMake] [Darwin] Support building the macho_embedded builtin libraries.Chris Bieneman2015-09-291-2/+82
| | | | | | | | | | | | Summary: This ports functionality from the clang_macho_embedded.mk platform makefile over to CMake. Reviewers: bogner, samsonov, bob.wilson Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13226 llvm-svn: 248850
* [CMake] [Darwin] [builtins] Apply OS and OS-arch filters to cc_kext builtin ↵Chris Bieneman2015-09-281-1/+12
| | | | | | | | libraries. We don't want to filter out the builtins that are present in libSystem like we do for the normal builtins because kexts can't link libSystem, but we should filter out all the builtins that are generally not supported on the OS and architecture. llvm-svn: 248756
* [CMake] Accidentally committed code that was using a variable only populated ↵Chris Bieneman2015-09-281-1/+1
| | | | | | in some earlier code. NFC. llvm-svn: 248752
* [CMake] [Darwin] [builtins] Fix building builtins for Darwin simulator ↵Chris Bieneman2015-09-281-20/+30
| | | | | | | | platforms. For Darwin simulator platforms we shouldn't build the cc_kext builtins at all because they aren't applicable, and we should includ the simulator builtins as slices inside the main platform builtin library. llvm-svn: 248751
* [CMake] [Darwin] Make darwin_filter_builtin_sources support both whitelist ↵Chris Bieneman2015-09-281-3/+15
| | | | | | and blacklist filtering. llvm-svn: 248720
* [CMake] [darwin] [builtins] Make darwin_lipo_libs take OUTPUT_DIR as an ↵Chris Bieneman2015-09-251-7/+9
| | | | | | | | option. NFC. This refactoring will allow me to reuse this function when calling lipo with outputs in different directories. llvm-svn: 248639
* [CMake] [darwin] Refactor darwin_read_exclude_file to be reusable. NFC.Chris Bieneman2015-09-251-8/+11
| | | | | | Rename darwin_read_exclude_file to more generic darwin_read_list_from_file, and make it take the file path instead of constructing it so it can be reused more freely. llvm-svn: 248635
* [CMake] [darwin] [builtins] Should install the lipo'd builtin libraries.Chris Bieneman2015-09-251-0/+2
| | | | | | On darwin we don't install the single-architecture builtin libraries, but we do need to install the lipo'd ones. llvm-svn: 248630
* [CMake] [darwin] [builtins] Should be reading the OS variable that is passed ↵Chris Bieneman2015-09-251-2/+2
| | | | | | in, not the bleed through from the function above. NFC. llvm-svn: 248629
* [CMake] [darwin] [cc_kext] In addition to builtin sources the cc_kext ↵Chris Bieneman2015-09-241-3/+6
| | | | | | builtins include some functions from clang_rt.profile. llvm-svn: 248548
* [CMake] [darwin] [builtins] Refactoring darwin_find_excluded_builtins_list ↵Chris Bieneman2015-09-241-21/+36
| | | | | | | | to parse arguments instead of only handling positional arguments. OS and ARCH must be specified, but minimum version may not. Excluding the minimum version will only apply the filters for builtins not supported by the OS and OS-Arch pair. llvm-svn: 248543
* [CMake] [darwin] [builtins] Refactoring code to filter builtin lists out ↵Chris Bieneman2015-09-241-15/+22
| | | | | | into a function. NFC. llvm-svn: 248542
* [CMake] [darwin] [builtins] Match clang_darwin.mk's compiler flags when ↵Chris Bieneman2015-09-241-2/+14
| | | | | | | | building builtin libraries On Darwin we have a very restrictive set of flags used when building the builtins. This change makes CMake match autoconf. llvm-svn: 248523
* [CMake] pass -Wno-pedantic to cc_kext builtins buildChris Bieneman2015-09-241-1/+1
| | | | | | | | | | We don't pass -pedantic to the builtin builds in the makefiles, so we shouldn't do it here. This is a temporary fix for the broken bot: http://lab.llvm.org:8080/green/job/clang-stage1-cmake-RA_build/7526/warnings8Result/new/ A more correct solution is in the works. llvm-svn: 248515
* [CMake] [Darwin] Bug 21562 - Add a CMake equivalent for ↵Chris Bieneman2015-09-231-19/+44
| | | | | | | | | | | | | | make/platform/clang_darwin.mk in compiler_rt Summary: First pass at adding cc_kext_* builtin libraries. I need to cleanup and refactor the builtin filtering so that I can use it to filter the builtin symbols list, but this is the first step in the right direction. Reviewers: bob.wilson, bogner, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13115 llvm-svn: 248443
* [CMake] [Darwin] Bug 21562 - Add a CMake equivalent for ↵Chris Bieneman2015-09-231-0/+111
| | | | | | | | | | | | | | | | | make/platform/clang_darwin.mk in compiler_rt Summary: Building the builtins on Darwin platforms is a bit complicated. This is a first-pass implementation of the functionality from clang_darwin.mk into CMake. When building the builtins on Darwin we have layers of blacklists that we apply based on platform, architecture, and minimum supported OS version. Reviewers: bogner, filcab, bob.wilson, samsonov Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13059 llvm-svn: 248383
* [CMake] Make the sample program in darwin_test_archs have a symbol it needs ↵Chris Bieneman2015-09-161-1/+1
| | | | | | | | | | to link. This resolves an issue building compiler-rt using Xcode 7 that was reported on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2015-September/090245.html llvm-svn: 247833
* [CMake] Fixing haswell filtering.Chris Bieneman2015-08-211-2/+2
| | | | | | Turns out this wasn't working at all. llvm-svn: 245713
* [CMake] Fix building unit tests on DarwinChris Bieneman2015-08-201-0/+22
| | | | | | | | | | | | | | | | Summary: There are a number of issues with unit tests on Darwin. These patches address the following: * Unit tests should be passed -arch (-m32/-m64 isn't sufficient) * Unit tests should be passed ${DARWIN_osx_CFLAGS} because they're being built for OS X * Test architectures should be filtered based on base system capabilities (i.e. don't try running x86_64h tests on pre-haswell hardware). Reviewers: bogner, filcab, kubabrecka Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12174 llvm-svn: 245580
* [cmake darwin] Use a STATUS message type. Explain where the arches came from.Filipe Cabecinhas2015-08-191-1/+1
| | | | llvm-svn: 245453
* [CMake] Add experimental support for building compiler-rt for iOSChris Bieneman2015-08-131-0/+79
Summary: This is a reunification of three separate reviews D11073, D11082, D11083. Having them separate was not constructive even though the patches were smaller because it led to fragmented conversations, and this is really all about one change. This patch incorporates feedback from samsonov, and refactors the hacky darwin code out of the root CMakeLists.txt and int config-ix.cmake. Reviewers: zaks.anna, bogner, kubabrecka, chandlerc, samsonov Subscribers: jevinskie, filcab, llvm-commits Differential Revision: http://reviews.llvm.org/D11820 llvm-svn: 244948
OpenPOWER on IntegriCloud