clangupc / clang-upc

Clang UPC Front-End
https://clangupc.github.io/
Other
16 stars 5 forks source link

build 32-bit builds on 64-bit host #61

Closed PHHargrove closed 10 years ago

PHHargrove commented 10 years ago

On an x86-64 host I can pass -DLLVM_BUILD_32_BITS=TRUE to CMake and almost everything gets build as 32-bit objects, including libupc. The only exceptions are the upc-crt objects:

$ find lib bin -type f | xargs file | grep Mach-O | grep -v i386
lib/upc-crtbegin.o:                         Mach-O 64-bit object x86_64
lib/upc-crtbeginS.o:                        Mach-O 64-bit object x86_64
lib/upc-crtbeginT.o:                        Mach-O 64-bit object x86_64
lib/upc-crtend.o:                           Mach-O 64-bit object x86_64
lib/upc-crtendS.o:                          Mach-O 64-bit object x86_64
lib/upc-crtendT.o:                          Mach-O 64-bit object x86_64

I am going to see if I can learn enough CMake to fix this tonight.

PHHargrove commented 10 years ago

Fixed in 146870b