svn commit: r324893 - projects/runtime-coverage/share/mk

Ngie Cooper ngie at FreeBSD.org
Mon Oct 23 04:20:12 UTC 2017


Author: ngie
Date: Mon Oct 23 04:20:11 2017
New Revision: 324893
URL: https://svnweb.freebsd.org/changeset/base/324893

Log:
  Handle host builds
  
  If TARGET_ARCH isn't defined, fallback to MACHINE_ARCH.
  
  This is a followup to r324873.
  
  PR:		222925

Modified:
  projects/runtime-coverage/share/mk/sys.mk

Modified: projects/runtime-coverage/share/mk/sys.mk
==============================================================================
--- projects/runtime-coverage/share/mk/sys.mk	Mon Oct 23 03:41:07 2017	(r324892)
+++ projects/runtime-coverage/share/mk/sys.mk	Mon Oct 23 04:20:11 2017	(r324893)
@@ -15,7 +15,11 @@ unix		?=	We run FreeBSD, not UNIX.
 #
 __TO_CPUARCH=C/mips(n32|64)?(el)?(hf)?/mips/:C/arm(v[67])?(eb)?/arm/:C/powerpc(64|spe)/powerpc/:C/riscv64(sf)?/riscv/
 MACHINE_CPUARCH=${MACHINE_ARCH:${__TO_CPUARCH}}
+.ifdef TARGET_ARCH
 TARGET_CPUARCH=${TARGET_ARCH:${__TO_CPUARCH}}
+.else
+TARGET_CPUARCH=${MACHINE_CPUARCH}
+.endif
 .endif
 
 


More information about the svn-src-projects mailing list