FreeBSD Bugzilla – Attachment 197920 Details for
Bug 232077
devel/xeus: fix build with GCC-based architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
xeus.patch (text/plain), 1.16 KB, created by
Piotr Kubaj
on 2018-10-08 17:37:50 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2018-10-08 17:37:50 UTC
Size:
1.16 KB
patch
obsolete
>Index: files/patch-CMakeLists.txt >=================================================================== >--- files/patch-CMakeLists.txt (revision 481501) >+++ files/patch-CMakeLists.txt (working copy) >@@ -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()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 232077
: 197920