Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132903854
D6362.id19841.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
571 B
Referenced Files
None
Subscribers
None
D6362.id19841.diff
View Options
Index: Mk/Uses/compiler.mk
===================================================================
--- Mk/Uses/compiler.mk
+++ Mk/Uses/compiler.mk
@@ -104,10 +104,20 @@
.if ${_COMPILER_ARGS:Mopenmp}
.if ${COMPILER_TYPE} == clang
-USE_GCC= yes
+.if ${ARCH} == amd64
+.include "${USESDIR}/localbase.mk"
+.if ${COMPILER_VERSION} < 38
+CFLAGS+= -D_OPENMP
+LDFLAGS+= -lomp
+.endif
+LDFLAGS+= -lm
+LIB_DEPENDS+= libomp.so.0:devel/openmp
+.else
+USE_GCC= yes
CHOSEN_COMPILER_TYPE= gcc
.endif
.endif
+.endif
.if ${_COMPILER_ARGS:Mnestedfct}
.if ${COMPILER_TYPE} == clang
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 22, 1:06 AM (3 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24035347
Default Alt Text
D6362.id19841.diff (571 B)
Attached To
Mode
D6362: Use llvm openmp on amd64 when the compiler chosen is clang
Attached
Detach File
Event Timeline
Log In to Comment