Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167134440
D16012.id44537.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16012.id44537.diff
View Options
Index: head/lib/libc/tests/ssp/Makefile
===================================================================
--- head/lib/libc/tests/ssp/Makefile
+++ head/lib/libc/tests/ssp/Makefile
@@ -1,9 +1,5 @@
# $FreeBSD$
-# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
-.include <host-target.mk>
-# XXX ---
-
.include <bsd.own.mk>
NO_WERROR=
@@ -35,21 +31,16 @@
# probably needs to be fixed as it's currently hardcoded.
#
# sanitizer is not tested or supported for ARM right now. sbruno
-.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
-.if ${COMPILER_TYPE} == "clang" && ${MK_TOOLCHAIN} == "yes"
-.if ${COMPILER_VERSION} < 30500 || 30700 <= ${COMPILER_VERSION}
-
-# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
-.if ${MACHINE_CPUARCH} == ${_HOST_ARCH}
-# XXX ---
-
-PROGS+= h_raw
-
-# XXX This is a workaround to allow i386 to cross-compile on an amd64 host.
+.if ${COMPILER_TYPE} == "clang" && !defined(_SKIP_BUILD) && \
+ (!defined(_RECURSING_PROGS) || ${PROG} == "h_raw")
+.if !defined(_CLANG_RESOURCE_DIR)
+_CLANG_RESOURCE_DIR!= ${CC:N${CCACHE_BIN}} -print-resource-dir
+.export _CLANG_RESOURCE_DIR
.endif
-# XXX ---
-
-.endif
+_libclang_rt_arch= ${MACHINE_ARCH:S/amd64/x86_64/:C/hf$//:S/mipsn32/mips64/}
+_libclang_rt_ubsan= ${_CLANG_RESOURCE_DIR}/lib/freebsd/libclang_rt.ubsan_standalone-${_libclang_rt_arch}.a
+.if exists(${_libclang_rt_ubsan})
+PROGS+= h_raw
.endif
.endif
PROGS+= h_read
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 9:18 AM (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36987773
Default Alt Text
D16012.id44537.diff (1 KB)
Attached To
Mode
D16012: Rework check for libclang_rt to see if the needed library exists.
Attached
Detach File
Event Timeline
Log In to Comment