File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -431,8 +431,10 @@ if(runtimes)
431
431
set (LIBOMP_MODULES_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR} /flang" )
432
432
# TODO: This is a workaround until flang becomes a first-class project
433
433
# in llvm/CMakeList.txt. Until then, this line ensures that flang-new is
434
- # built before "openmp" is built as a runtime project.
435
- list (APPEND extra_deps "flang-new" )
434
+ # built before "openmp" is built as a runtime project. Besides "flang-new"
435
+ # to build the compiler, we also need to add "module_files" to make sure
436
+ # that all .mod files are also properly build.
437
+ list (APPEND extra_deps "flang-new" "module_files" )
436
438
endif ()
437
439
foreach (dep opt llvm-link llvm-extract clang clang-offload-packager)
438
440
if (TARGET ${dep} )
You can’t perform that action at this time.
0 commit comments