cmake, ldc, and cross compiling
Dan Olson
zans.is.for.cans at yahoo.com
Wed Jan 22 21:00:09 PST 2014
Jacob Carlborg <doob at me.com> writes:
> On 2014-01-21 09:23, Dan Olson wrote:
>> When I build ldc as cross compiler to iOS (armv7-apple-darwin), I'd like
>> to:
>>
>> - use gcc-4.8 to compile ldc to host
>
> Why don't you use Clang to compile LDC?
Hi Jacob,
I am more familar with gcc, so just went with gcc-4.8 that I knew would
have a modern std c++ lib. That's the only reason. The std c++ lib
shipped with xcode did not pass the llvm configure sniff test.
For example:
CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ../llvm-svn/configure --target=armv7-apple-darwin
...
checking whether Clang will select a modern C++ standard library... no
configure: error:
We detected a missing feature in the standard C++ library that was known to be
missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
than 4.7. You will need to update your system and ensure Clang uses the newer
standard library.
If this error is incorrect or you need to force things to work, you may pass
'--disable-compiler-version-checks' to configure to bypass this test.
More information about the digitalmars-d-ldc
mailing list