|
|
@@ -607,11 +607,6 @@ else ()
|
|
|
endif ()
|
|
|
set (CMAKE_C_FLAGS_RELEASE "-Oz -DNDEBUG")
|
|
|
set (CMAKE_CXX_FLAGS_RELEASE "-Oz -DNDEBUG")
|
|
|
- if (DEFINED ENV{CI})
|
|
|
- # Our CI server is slow, so do not optimize and discard all debug info when test building in Debug configuration
|
|
|
- set (CMAKE_C_FLAGS_DEBUG "-g0")
|
|
|
- set (CMAKE_CXX_FLAGS_DEBUG "-g0")
|
|
|
- endif ()
|
|
|
# CMake does not treat Emscripten as a valid platform yet, certain platform-specific variables cannot be set in the
|
|
|
# toolchain file as they get overwritten by CMake internally as per Linux platform default, so set them here for now
|
|
|
set (CMAKE_EXECUTABLE_SUFFIX .html)
|
|
|
@@ -626,7 +621,7 @@ else ()
|
|
|
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mstackrealign")
|
|
|
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mstackrealign")
|
|
|
else ()
|
|
|
- if (DEFINED ENV{CI})
|
|
|
+ if (DEFINED ENV{TRAVIS})
|
|
|
# TODO: Remove this workaround when Travis CI VM has been migrated to Ubuntu 14.04 LTS
|
|
|
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-tree-slp-vectorize -fno-tree-vectorize")
|
|
|
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fno-tree-slp-vectorize -fno-tree-vectorize")
|
|
|
@@ -652,7 +647,7 @@ else ()
|
|
|
endif ()
|
|
|
# Temporary workaround for Travis CI VM as Ubuntu 12.04 LTS still uses old glibc header files that do not have the necessary patch for Clang to work correctly
|
|
|
# TODO: Remove this workaround when Travis CI VM has been migrated to Ubuntu 14.04 LTS
|
|
|
- if (DEFINED ENV{CI} AND "$ENV{LINUX}")
|
|
|
+ if (DEFINED ENV{TRAVIS} AND "$ENV{LINUX}")
|
|
|
add_definitions (-D__extern_always_inline=inline)
|
|
|
endif ()
|
|
|
endif ()
|
|
|
@@ -1094,9 +1089,7 @@ macro (setup_emscripten_linker_flags LINKER_FLAGS)
|
|
|
endif ()
|
|
|
set (${LINKER_FLAGS} "${${LINKER_FLAGS}} ${MEMORY_LINKER_FLAGS} -s USE_SDL=2 -s NO_EXIT_RUNTIME=1 -s ERROR_ON_UNDEFINED_SYMBOLS=1")
|
|
|
set (${LINKER_FLAGS}_RELEASE "${${LINKER_FLAGS}_RELEASE} -O3 -s AGGRESSIVE_VARIABLE_ELIMINATION=1") # Remove variables to make the -O3 regalloc easier
|
|
|
- if (NOT DEFINED ENV{CI})
|
|
|
- set (${LINKER_FLAGS}_DEBUG "${${LINKER_FLAGS}_DEBUG} -g4") # Preserve LLVM debug information, show line number debug comments, and generate source maps
|
|
|
- endif ()
|
|
|
+ set (${LINKER_FLAGS}_DEBUG "${${LINKER_FLAGS}_DEBUG} -g4") # Preserve LLVM debug information, show line number debug comments, and generate source maps
|
|
|
if (URHO3D_TESTING)
|
|
|
set (${LINKER_FLAGS} "${${LINKER_FLAGS}} --emrun") # Inject code into the generated Module object to enable capture of stdout, stderr and exit()
|
|
|
endif ()
|
|
|
@@ -1385,7 +1378,7 @@ macro (setup_test)
|
|
|
list (APPEND ARG_OPTIONS -timeout ${URHO3D_TEST_TIMEOUT})
|
|
|
if (EMSCRIPTEN)
|
|
|
if (DEFINED ENV{CI})
|
|
|
- # The latency on Travis CI server could be very high at time, so add some adjustment
|
|
|
+ # The latency on CI server could be very high at time, so add some adjustment
|
|
|
# If it is not enough causing a test case failure then so be it because it is better that than wait for it and still ends up in build error due to time limit
|
|
|
set (EMRUN_TIMEOUT_ADJUSTMENT + 8 * \\${URHO3D_TEST_TIMEOUT})
|
|
|
set (EMRUN_TIMEOUT_RETURNCODE --timeout_returncode 0)
|