mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 05:40:30 -04:00
This introduces flang-driver, a clang6-derived driver / companion compiler, and uses math/libpgmath as the math library backend. Notably, the latter currently limits us to 12-CURRENT. Patches are a combination of carry-over and adapted OpenBSD ones. While there, pet portlint. Reviewed by: zeising (mentor), mat Approved by: zeising (mentor) Obtained from: Brian Callahan (bcallah@openbsd.org) with adaptations Differential Revision: https://reviews.freebsd.org/D17036
13 lines
454 B
Text
13 lines
454 B
Text
--- tools/flang2/CMakeLists.txt.orig 2018-09-04 22:24:01 UTC
|
|
+++ tools/flang2/CMakeLists.txt
|
|
@@ -33,8 +33,8 @@ set(FLANG2_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/
|
|
|
|
include_directories(${FLANG2_INCLUDE_DIR})
|
|
|
|
-if( ${TARGET_OS} STREQUAL "Linux" )
|
|
- if( ${TARGET_ARCHITECTURE} STREQUAL "x86_64" )
|
|
+if( ${TARGET_OS} STREQUAL "Linux|FreeBSD" )
|
|
+ if( ${TARGET_ARCHITECTURE} STREQUAL "x86_64|amd64" )
|
|
set(X86_64 ON)
|
|
set(LINUX86 ON)
|
|
endif()
|