Buildbot: Force build environment to use latest GCC
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 6 Apr 2017 09:21:07 +0000 (11:21 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 6 Apr 2017 09:21:07 +0000 (11:21 +0200)
build_files/buildbot/config/blender_linux.cmake

index ed5417c1c6e653e83f96fec3235cce9d9ed8b033..320edab65e8f0f1390d322887923e76c63bab334 100644 (file)
@@ -21,6 +21,10 @@ else()
        message(FATAL_ERROR "Unknown build environment")
 endif()
 
+# Use backported version of the compiler instead of a system default one
+set(CMAKE_C_COMPILER "/usr/bin/gcc-6" CACHE STRING "" FORCE)
+set(CMAKE_CXX_COMPILER "/usr/bin/g++-6" CACHE STRING "" FORCE)
+
 # Default to only build Blender, not the player
 set(WITH_BLENDER             ON  CACHE BOOL "" FORCE)
 set(WITH_PLAYER              OFF CACHE BOOL "" FORCE)