From c432f094f5882731218dcf13e4c5ca4c07f5d486 Mon Sep 17 00:00:00 2001 From: Charles Johnston Date: Thu, 19 Jan 2023 10:58:04 -0500 Subject: [PATCH] Enable CTS log files to exceed 2GB on 32-bit Linux build Components: Framework VK-GL-CTS issue: 4238 Change-Id: Ie9c58364f0bb44c3b2a15a71585d4801d0b12063 --- framework/delibs/cmake/CFlags.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework/delibs/cmake/CFlags.cmake b/framework/delibs/cmake/CFlags.cmake index cde5aa5..48bb029 100644 --- a/framework/delibs/cmake/CFlags.cmake +++ b/framework/delibs/cmake/CFlags.cmake @@ -45,6 +45,12 @@ if (DE_COMPILER_IS_GCC OR DE_COMPILER_IS_CLANG) set(CMAKE_C_FLAGS "${TARGET_FLAGS} ${WARNING_FLAGS} ${CMAKE_C_FLAGS} -std=c99 -pedantic ") set(CMAKE_CXX_FLAGS "${TARGET_FLAGS} ${WARNING_FLAGS} ${CMAKE_CXX_FLAGS} -std=c++11 -Wno-delete-non-virtual-dtor") + # Set _FILE_OFFSET_BITS=64 on 32-bit build on Linux to enable output log files to exceed 2GB + if ((DE_CPU_X86) AND (DE_OS_UNIX)) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_FILE_OFFSET_BITS=64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64") + endif () + # Force compiler to generate code where integers have well defined overflow # Turn on -Wstrict-overflow=5 and check all warnings before removing set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fwrapv") -- 2.7.4