[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.
This commit is contained in:
Tim Keith 2021-03-15 15:17:35 -07:00
parent 34885bffdf
commit 566a2c18bf

View File

@ -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}