freebsd-ports/devel/llvm-devel/files/patch-utils_llvm-build_llvmbuild_main.py
Brooks Davis 758bcb9a30 Update llvm-devel to a new snapshot.
Remove embedded compiler-rt build as that no longer works and create a
compiler-rt-devel port (currently supporting i386 and amd64, patches
welcome for other ARCHs).

Cause clang to ignore the -fformat-extensions argument.[1]

Submitted by:	Sender Ghost <lightside@gmx.com> [1]
2015-10-23 23:36:56 +00:00

21 lines
870 B
Python

--- utils/llvm-build/llvmbuild/main.py.orig 2015-10-02 16:42:59 UTC
+++ utils/llvm-build/llvmbuild/main.py
@@ -747,7 +747,17 @@ def add_magic_target_components(parser,
# We handle a few special cases of target names here for historical
# reasons, as these are the names configure currently comes up with.
- native_target_name = { 'x86' : 'X86',
+ native_target_name = { 'amd64' : 'X86',
+ 'arm' : 'ARM',
+ 'armeb' : 'ARM',
+ 'armv6' : 'ARM',
+ 'armv6hf' : 'ARM',
+ 'i386' : 'X86',
+ 'mips' : 'Mips',
+ 'powerpc' : 'PowerPC',
+ 'powerpc64' : 'PowerPC',
+ 'sparc64' : 'Sparc',
+ 'x86' : 'X86',
'x86_64' : 'X86',
'Unknown' : None }.get(opts.native_target,
opts.native_target)