[flang-commits] [flang] 566a2c1 - [flang] Create intrinsics modules directory

Tim Keith via flang-commits flang-commits at lists.llvm.org
Mon Mar 15 15:19:44 PDT 2021


Author: Tim Keith
Date: 2021-03-15T15:19:30-07:00
New Revision: 566a2c18bf1f061bd45867e741ea61da3e2f3b8f

URL: https://github.com/llvm/llvm-project/commit/566a2c18bf1f061bd45867e741ea61da3e2f3b8f
DIFF: https://github.com/llvm/llvm-project/commit/566a2c18bf1f061bd45867e741ea61da3e2f3b8f.diff

LOG: [flang] Create intrinsics modules directory

A clean build fails using make because the intrinsics modules directory
doesn't exist. For some reason it works fine with ninja.

Added: 
    

Modified: 
    flang/tools/f18/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index d84516161594..25f633e32546 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -46,6 +46,7 @@ foreach(filename ${MODULES})
     set(depends ${FLANG_INTRINSIC_MODULES_DIR}/__fortran_builtins.mod)
   endif()
   add_custom_command(OUTPUT ${base}.mod
+    COMMAND ${CMAKE_COMMAND} -E make_directory ${FLANG_INTRINSIC_MODULES_DIR}
     COMMAND f18 -fsyntax-only ${FLANG_SOURCE_DIR}/module/${filename}.f90
     WORKING_DIRECTORY ${FLANG_INTRINSIC_MODULES_DIR}
     DEPENDS f18 ${FLANG_SOURCE_DIR}/module/${filename}.f90 ${depends}


        


More information about the flang-commits mailing list