diff --git a/CMakeLists.txt b/CMakeLists.txt index a042b731..af275c57 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,9 +42,11 @@ if(NOT OX_BARE_METAL) endif() # enable ccache -find_program(CCACHE_PROGRAM ccache) -if(CCACHE_PROGRAM) - set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") +if(NOT DEFINED ENV{NOSTALGIA_SUPPRESS_CCACHE}) + find_program(CCACHE_PROGRAM ccache) + if(CCACHE_PROGRAM) + set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}") + endif() endif() if(CMAKE_BUILD_TYPE STREQUAL "Debug") diff --git a/jenkins/shared/env.gy b/jenkins/shared/env.gy index 13e11d30..6fc89d9d 100644 --- a/jenkins/shared/env.gy +++ b/jenkins/shared/env.gy @@ -1 +1,2 @@ env.OX_NODEBUG = 1 +env.NOSTALGIA_SUPPRESS_CCACHE = 1