[flang-commits] [flang] 7ce775f - [flang] Fix cmake errors when building the Decimal and runtime libraries standalone

Jonathon Penix via flang-commits flang-commits at lists.llvm.org
Fri Jan 13 12:05:01 PST 2023


Author: Jonathon Penix
Date: 2023-01-13T11:56:11-08:00
New Revision: 7ce775feac15bcb8a7b499bdb5e1c355347a710f

URL: https://github.com/llvm/llvm-project/commit/7ce775feac15bcb8a7b499bdb5e1c355347a710f
DIFF: https://github.com/llvm/llvm-project/commit/7ce775feac15bcb8a7b499bdb5e1c355347a710f.diff

LOG: [flang] Fix cmake errors when building the Decimal and runtime libraries standalone

Currently, cmake gives errors that check_cxx_compiler_flag and append are
unknown when building the Decimal and runtime libraries standalone. Add
the appropriate include to resolve this.

Differential Revision: https://reviews.llvm.org/D141525

Added: 
    

Modified: 
    flang/lib/Decimal/CMakeLists.txt
    flang/runtime/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/lib/Decimal/CMakeLists.txt b/flang/lib/Decimal/CMakeLists.txt
index 47de6cd9a6603..55c236fdf1a43 100644
--- a/flang/lib/Decimal/CMakeLists.txt
+++ b/flang/lib/Decimal/CMakeLists.txt
@@ -24,6 +24,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
 
   include(AddLLVM)
   include(AddFlang)
+  include(HandleLLVMOptions)
 
   include(TestBigEndian)
   test_big_endian(IS_BIGENDIAN)

diff  --git a/flang/runtime/CMakeLists.txt b/flang/runtime/CMakeLists.txt
index 174c8dbaa649c..942500678a674 100644
--- a/flang/runtime/CMakeLists.txt
+++ b/flang/runtime/CMakeLists.txt
@@ -39,6 +39,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
 
   include(AddLLVM)
   include(AddFlang)
+  include(HandleLLVMOptions)
 
   include(TestBigEndian)
   test_big_endian(IS_BIGENDIAN)


        


More information about the flang-commits mailing list