diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2020-05-26 09:15:55 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2020-05-26 09:15:55 +0000 |
commit | 9059621629a4dad0c6a3947919679654065f46a2 (patch) | |
tree | f7846468b9362eb5231a3b9322b6842dac0f4feb /lang/io-devel | |
parent | math/giacxcas: fix build on GCC architectures (diff) |
lang/io, lang/io-devel: fix build on !x86
While at it, add test target to io-devel.
PR: 246225
Submitted by: pkubaj
Notes
Notes:
svn path=/head/; revision=536598
Diffstat (limited to 'lang/io-devel')
-rw-r--r-- | lang/io-devel/Makefile | 6 | ||||
-rw-r--r-- | lang/io-devel/files/extra-patch-CMakeLists.txt | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lang/io-devel/Makefile b/lang/io-devel/Makefile index c4de0c81868f..198dff163e26 100644 --- a/lang/io-devel/Makefile +++ b/lang/io-devel/Makefile @@ -31,9 +31,13 @@ CMAKE_ARGS= -DWITHOUT_EERIE:BOOL=ON .include <bsd.port.pre.mk> -# disable sse on non-x86 archs +# disable SSE on non-x86 archs .if ${ARCH} != amd64 && ${ARCH} != i386 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-CMakeLists.txt .endif +do-test: + cd ${BUILD_WRKSRC} && \ + ./_build/binaries/io ${WRKSRC}/libs/iovm/tests/correctness/run.io + .include <bsd.port.post.mk> diff --git a/lang/io-devel/files/extra-patch-CMakeLists.txt b/lang/io-devel/files/extra-patch-CMakeLists.txt index 8590f9b905e5..19505a831e0f 100644 --- a/lang/io-devel/files/extra-patch-CMakeLists.txt +++ b/lang/io-devel/files/extra-patch-CMakeLists.txt @@ -1,10 +1,11 @@ --- CMakeLists.txt.orig 2018-08-07 11:40:49 UTC +++ CMakeLists.txt -@@ -41,7 +41,6 @@ IF(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_C +@@ -41,7 +41,7 @@ IF(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_C SET(CMAKE_BUILD_TYPE_DebugFast) SET(CMAKE_CXX_FLAGS_DEBUGFAST "-g -O0") SET(CMAKE_C_FLAGS_DEBUGFAST "-g -O0") - SET(CMAKE_C_FLAGS "-msse2") ++ SET(CMAKE_C_FLAGS "-D__SIMD_NO_SIMD__") if(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE "DebugFast") endif(NOT CMAKE_BUILD_TYPE) |