Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2018 15:00:48 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483670 - head/devel/xeus/files
Message-ID:  <201811011500.wA1F0mNa098756@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811011500.wA1F0mNa098756>