mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
UPDATE: modify cmake scripts, adding warning messages.
This commit is contained in:
@@ -27,7 +27,18 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
# MinGW LTO will cause errors in compile stage
|
||||
# We just disable it
|
||||
if(CMAKE_C_COMPILER MATCHES "/.*/x86_64-w64-mingw32-gcc$")
|
||||
if(MINGW)
|
||||
set(MINGW_WARNING_SHOWED FALSE)
|
||||
if (NOT ${MINGW_WARNING_SHOWED})
|
||||
set(MINGW_WARNING_SHOWED TRUE)
|
||||
message(STATUS "!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!")
|
||||
message(STATUS "!!! Cross compile with MinGW is not fully tested !!!")
|
||||
message(STATUS "!!! Compile will continue after 10 seconds !!!")
|
||||
message(STATUS "!!! <CTRL-C> to stop compile. !!!")
|
||||
message(STATUS "!!! USE AT YOUR OWN RISK, YOU HAVE BEEN WARNED !!!")
|
||||
message(STATUS "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 10)
|
||||
endif()
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
|
||||
elseif(NOT CMAKE_SYSTEM_NAME MATCHES "Emscripten")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
|
||||
|
||||
Reference in New Issue
Block a user