mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-22 15:31:00 +00:00
[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:
parent
34885bffdf
commit
566a2c18bf
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user