diff options
author | jmd <jmd@FreeBSD.org> | 2017-05-24 11:21:57 +0800 |
---|---|---|
committer | jmd <jmd@FreeBSD.org> | 2017-05-24 11:21:57 +0800 |
commit | dd06cd2301c88823f52f2e6184d2100ffac2aa99 (patch) | |
tree | 6a76a8e87b7da2dd8af35b0481b6ebe20e6da94b /devel/flang | |
parent | 8433aad2db46eab81be6208ecdab4b080ba96faa (diff) | |
download | freebsd-ports-gnome-dd06cd2301c88823f52f2e6184d2100ffac2aa99.tar.gz freebsd-ports-gnome-dd06cd2301c88823f52f2e6184d2100ffac2aa99.tar.zst freebsd-ports-gnome-dd06cd2301c88823f52f2e6184d2100ffac2aa99.zip |
devel/flang: update to latest github revision to chase their work in progress. While there include two suggestions by Steve Kargl in the flang wrapper script (add flang's include directory by default, add libompstub by default). Add a TESTS option that enables flang's internal unit tests (request on freebsd-fortran@). The last does not seem to be doing much in upstream yet.
There is still a problem when trying to compile statically. Also, OpenMP code does compile w/ -fopenmp -L/usr/local/lib but does not execute in parallel yet.
Reported by: Steve Kargl <sgk@troutmask.apl.washington.edu> (flang wrapper additions)
Reviewed by: swills (mentor)
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10866
Diffstat (limited to 'devel/flang')
-rw-r--r-- | devel/flang/Makefile | 12 | ||||
-rw-r--r-- | devel/flang/distinfo | 6 | ||||
-rw-r--r-- | devel/flang/files/flang.in | 2 |
3 files changed, 14 insertions, 6 deletions
diff --git a/devel/flang/Makefile b/devel/flang/Makefile index 0fd75af2fb18..fe0801cc9c38 100644 --- a/devel/flang/Makefile +++ b/devel/flang/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= flang -DISTVERSION= 3.9-20170518 +DISTVERSION= 3.9-20170522 PORTREVISION= 1 CATEGORIES= devel @@ -22,6 +22,9 @@ RUN_DEPENDS= llvm39>=0:devel/llvm39 \ ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON_amd64= for now only builds and is supported on amd64 +OPTIONS_DEFINE= TESTS +TESTS_DESC= build unit tests for flang + USE_LDCONFIG= ${PREFIX}/flang/lib USES= cmake:outsource compiler:c++11-lib libedit perl5 tar:xz \ shebangfix @@ -30,7 +33,7 @@ USES+= ${_USES_PYTHON} USE_GITHUB= yes GH_ACCOUNT= flang-compiler -GH_TAGNAME= a9ccdd7 +GH_TAGNAME= 5af07d4 CMAKE_ARGS+= -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config39 \ -DCMAKE_CXX_COMPILER=${LOCALBASE}flang/bin/clang++ \ @@ -39,6 +42,11 @@ CMAKE_ARGS+= -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config39 \ CMAKE_INSTALL_PREFIX= ${PREFIX}/flang +.include <bsd.port.options.mk> +.if ${PORT_OPTIONS:MTESTS} +CMAKE_ARGS+= -DFLANG_INCLUDE_TESTS=ON +.endif + MAKE_JOBS_UNSAFE= yes post-patch: diff --git a/devel/flang/distinfo b/devel/flang/distinfo index ea3c497c0881..9d5393d0bbfe 100644 --- a/devel/flang/distinfo +++ b/devel/flang/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1495121602 -SHA256 (flang-compiler-flang-3.9-20170518-a9ccdd7_GH0.tar.gz) = ddcd8d00bf4429ca63a47d6509dc4c77708afbeda90133121bdb63505fa005b9 -SIZE (flang-compiler-flang-3.9-20170518-a9ccdd7_GH0.tar.gz) = 3574207 +TIMESTAMP = 1495501996 +SHA256 (flang-compiler-flang-3.9-20170522-5af07d4_GH0.tar.gz) = e0398ba2e01d14dbd23b6cd9f07b66c0072a23468a48490003bbb3dff49895e5 +SIZE (flang-compiler-flang-3.9-20170522-5af07d4_GH0.tar.gz) = 3578945 diff --git a/devel/flang/files/flang.in b/devel/flang/files/flang.in index eef94f1d9e23..a1428ef64fba 100644 --- a/devel/flang/files/flang.in +++ b/devel/flang/files/flang.in @@ -1,2 +1,2 @@ #!/bin/sh -%%PREFIX%%/flang/bin/flang -L%%PREFIX%%/flang/lib -lflang -lflangmain -lflangrti -lexecinfo $@ +%%PREFIX%%/flang/bin/flang -L%%PREFIX%%/flang/lib -lflang -lflangmain -lflangrti -lompstub -lexecinfo -I%%PREFIX%%/flang/include $@ |