Skip to content

Commit

Permalink
Add diagnostic printing of the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
janvorli committed Jun 25, 2021
1 parent edfc263 commit 581ca38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/libraries/Native/Unix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ endif(CLR_CMAKE_TARGET_UNIX)

include(configure.cmake)

message("Binary dir: ${CMAKE_BINARY_DIR}")

file(READ "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log" OUTPUT_LOG)
file(READ "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log" ERROR_LOG)
message("================================= CMakeOutput.log ===================================")
message("${OUTPUT_LOG}")
message("================================= CMakeError.log ===================================")
message("${ERROR_LOG}")

add_subdirectory(System.IO.Compression.Native)

if (NOT CLR_CMAKE_TARGET_BROWSER AND NOT CLR_CMAKE_TARGET_MACCATALYST AND NOT CLR_CMAKE_TARGET_IOS AND NOT CLR_CMAKE_TARGET_TVOS AND NOT CLR_CMAKE_TARGET_ANDROID)
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Native/Unix/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ check_c_source_compiles(
HAVE_MKSTEMP)

if (NOT HAVE_MKSTEMPS AND NOT HAVE_MKSTEMP)
message(FATAL_ERROR "Cannot find mkstemps nor mkstemp on this platform.")
# message(FATAL_ERROR "Cannot find mkstemps nor mkstemp on this platform.")
endif()

check_c_source_compiles(
Expand Down

0 comments on commit 581ca38

Please sign in to comment.