freebsd-ports/devel/llvm36/files/patch-utils_llvm-build_llvmbuild_main.py
Brooks Davis 363c2b0a3f Allow build on aarch64.
PR:		204281
Submitted by:	andrew
2015-11-04 19:45:20 +00:00

22 lines
835 B
Python

--- utils/llvm-build/llvmbuild/main.py.orig
+++ utils/llvm-build/llvmbuild/main.py
@@ -718,7 +718,18 @@
# 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 = { 'aarch64' : 'AArch64',
+ '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)