Allow CMAKE_OSX_ARCHITECTURES to build fat library.
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 29 May 2015 16:13:56 +0000 (16:13 +0000)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Fri, 29 May 2015 16:13:56 +0000 (16:13 +0000)
commit92907c2ab9ceba3d96ec480350e9cfb44cea1423
tree9fa0746600c300404e24765bf1358e8814a7382f
parent5c726433d298e1ea9a5a13f864eb2b4ee520b0a7
Allow CMAKE_OSX_ARCHITECTURES to build fat library.

The CMAKE_OSX_ARCHITECTURES CMake variable allows users to build
universal fat libraries that contain both i386 and x86_64 code.  These
changes allow this build by having the z_Linux_asm.s file detect the architecture
itself instead of receiving it through the build system.

Also, there was a LIBOMP_OSX_ARCHITECTURES CMake variable added to allow
people to only build libomp as a fat library and not the entire LLVM/Clang system.
http://lists.cs.uiuc.edu/pipermail/openmp-dev/2015-May/000626.html

llvm-svn: 238566
openmp/runtime/CMakeLists.txt
openmp/runtime/src/kmp_os.h
openmp/runtime/src/kmp_platform.h [new file with mode: 0644]
openmp/runtime/src/makefile.mk
openmp/runtime/src/z_Linux_asm.s