Skip to content

Commit e586536

Browse files
committed
Diagnosis to find out why buiildbots fails
1 parent e4a0bb2 commit e586536

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

openmp/runtime/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ if("${LIBOMP_ARCH}" STREQUAL "mic")
111111
endif()
112112
set(LIBOMP_FORTRAN_MODULES "${RUNTIMES_FLANG_MODULES_ENABLED}" CACHE BOOL
113113
"Create Fortran module files? (requires fortran compiler)")
114+
message("OpenMP: RUNTIMES_FLANG_MODULES_ENABLED=${RUNTIMES_FLANG_MODULES_ENABLED}")
115+
message("OpenMP: LIBOMP_FORTRAN_MODULES=${LIBOMP_FORTRAN_MODULES}")
114116

115117
# - Support for universal fat binary builds on Mac
116118
# - Having this extra variable allows people to build this library as a universal library

openmp/runtime/src/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,15 @@ if(${LIBOMP_OMPT_SUPPORT})
458458
endif()
459459

460460

461+
include(CMakePrintHelpers)
462+
461463
# Build the modules files if a Fortran compiler is available.
462464
# Only LLVM_ENABLE_RUNTIMES=openmp is supported, LLVM_ENABLE_PROJECTS=openmp
463465
# has been deprecated.
466+
message("OpenMP2: RUNTIMES_FLANG_MODULES_ENABLED=${RUNTIMES_FLANG_MODULES_ENABLED}")
467+
message("OpenMP2: LIBOMP_FORTRAN_MODULES=${LIBOMP_FORTRAN_MODULES}")
464468
if(LIBOMP_FORTRAN_MODULES)
469+
message("OpenMP2: Adding libomp-mod targets")
465470
add_library(libomp-mod OBJECT
466471
omp_lib.F90
467472
)
@@ -484,4 +489,24 @@ if(LIBOMP_FORTRAN_MODULES)
484489
${CMAKE_CURRENT_BINARY_DIR}/omp_lib.h
485490
DESTINATION ${destination}
486491
)
492+
493+
#cmake_print_properties(TARGETS libomp-mod)
487494
endif()
495+
cmake_print_variables(RUNTIMES_FLANG_MODULES_ENABLED LIBOMP_FORTRAN_MODULES RUNTIMES_FLANG_MODULES_ENABLED_default RUNTIMES_OUTPUT_RESOURCE_MOD_DIR RUNTIMES_INSTALL_RESOURCE_MOD_PATH)
496+
497+
if (EXISTS "${CMAKE_BINARY_DIR}/CMakeCache.txt")
498+
file(READ "${CMAKE_BINARY_DIR}/CMakeCache.txt" _outcache)
499+
message("CMakeCache.txt:\n${_outcache}")
500+
else ()
501+
message("No cache file")
502+
endif ()
503+
504+
505+
if (EXISTS "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeConfigureLog.yaml")
506+
file(READ "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeConfigureLog.yaml" _outcache)
507+
message("CMakeConfigureLog.yaml:\n${_outcache}")
508+
else ()
509+
message("No CMakeConfigureLog.yaml")
510+
endif ()
511+
512+

0 commit comments

Comments
 (0)