freebsd-ports/devel/llvm-cheri/files/patch-utils_llvm-build_llvmbuild_main.py
Brooks Davis 832fd34276 Replace lang/clang-cheri with devel/llvm-cheri derived from devel/llvm-devel
and update to the latest versions in git.

Sponsored by:	DARPA, AFRL
2015-07-30 22:21:40 +00:00

21 lines
870 B
Python

--- utils/llvm-build/llvmbuild/main.py.orig 2015-07-20 23:51:12 UTC
+++ utils/llvm-build/llvmbuild/main.py
@@ -718,7 +718,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)