git: 5320bdfd13e6 - main - devel/wasm3: Remove march=native.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 13 Nov 2021 19:37:03 UTC
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=5320bdfd13e6f863b7a449d05e3a58b65699e865 commit 5320bdfd13e6f863b7a449d05e3a58b65699e865 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2021-11-13 18:13:52 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2021-11-13 19:36:58 +0000 devel/wasm3: Remove march=native. It breaks runtime on x86 arch and fails to build on non x86 arch. Approved by: portmgr (build fix blanket) --- devel/wasm3/Makefile | 1 + devel/wasm3/files/patch-CMakeLists.txt | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/devel/wasm3/Makefile b/devel/wasm3/Makefile index 066af2a79d8b..86645df37084 100644 --- a/devel/wasm3/Makefile +++ b/devel/wasm3/Makefile @@ -1,6 +1,7 @@ PORTNAME= wasm3 DISTVERSIONPREFIX= v DISTVERSION= 0.5.0 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= freebsd@sysctl.cz diff --git a/devel/wasm3/files/patch-CMakeLists.txt b/devel/wasm3/files/patch-CMakeLists.txt index 3b586e383763..8cfe73cd9f54 100644 --- a/devel/wasm3/files/patch-CMakeLists.txt +++ b/devel/wasm3/files/patch-CMakeLists.txt @@ -1,5 +1,14 @@ --- CMakeLists.txt.orig 2021-06-02 10:40:14 UTC +++ CMakeLists.txt +@@ -172,7 +172,7 @@ else() + if(APPLE AND CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mcpu=native") + else() +- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -march=native") ++ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") + endif() + endif() + @@ -188,21 +188,10 @@ if(BUILD_WASI MATCHES "simple") elseif(BUILD_WASI MATCHES "metawasi") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Dd_m3HasMetaWASI")