From owner-svn-ports-all@freebsd.org Thu Nov 1 15:00:49 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4537010F4FB5; Thu, 1 Nov 2018 15:00:49 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EEE29798A1; Thu, 1 Nov 2018 15:00:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D10A61D3CE; Thu, 1 Nov 2018 15:00:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wA1F0mIk098757; Thu, 1 Nov 2018 15:00:48 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wA1F0mNa098756; Thu, 1 Nov 2018 15:00:48 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201811011500.wA1F0mNa098756@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Thu, 1 Nov 2018 15:00:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483670 - head/devel/xeus/files X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/devel/xeus/files X-SVN-Commit-Revision: 483670 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2018 15:00:49 -0000 Author: linimon Date: Thu Nov 1 15:00:48 2018 New Revision: 483670 URL: https://svnweb.freebsd.org/changeset/ports/483670 Log: Fix build with GCC-based architectures. PR: 232077 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Modified: head/devel/xeus/files/patch-CMakeLists.txt Modified: head/devel/xeus/files/patch-CMakeLists.txt ============================================================================== --- head/devel/xeus/files/patch-CMakeLists.txt Thu Nov 1 14:42:57 2018 (r483669) +++ head/devel/xeus/files/patch-CMakeLists.txt Thu Nov 1 15:00:48 2018 (r483670) @@ -40,7 +40,25 @@ }" HAVE_CRYPTOPP_BYTE_T) cmake_pop_check_state() -@@ -206,7 +205,7 @@ if(MSVC) +@@ -160,17 +159,11 @@ endif() + + include(CheckCXXCompilerFlag) + string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) +-OPTION(DISABLE_ARCH_NATIVE "disable -march=native flag" OFF) + + target_compile_features(xeus PRIVATE cxx_std_11) + + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel") + target_compile_options(xeus PUBLIC -Wunused-parameter -Wextra -Wreorder) +- if (DISABLE_ARCH_NATIVE) +- target_compile_options(xeus PUBLIC -mtune=generic) +- else() +- target_compile_options(xeus PUBLIC -march=native) +- endif() + + # Enable link time optimization and set the default symbol + # visibility to hidden (very important to obtain small binaries) +@@ -206,7 +199,7 @@ if(MSVC) elseif(APPLE) target_compile_definitions(xeus PUBLIC -DGUID_CFUUID) else()