diff options
author | Charles Johnston <Charles.Johnston@amd.com> | 2023-01-19 10:58:04 -0500 |
---|---|---|
committer | Piotr Byszewski <piotr.byszewski@mobica.com> | 2023-02-02 18:15:19 +0000 |
commit | c432f094f5882731218dcf13e4c5ca4c07f5d486 (patch) | |
tree | f6f9fcb88bf0d56f2e9593e8a03b666648264c8f | |
parent | dced98a4acde499350ce4556af430d0b4bcba5ca (diff) | |
download | VK-GL-CTS-c432f094f5882731218dcf13e4c5ca4c07f5d486.tar.gz VK-GL-CTS-c432f094f5882731218dcf13e4c5ca4c07f5d486.tar.bz2 VK-GL-CTS-c432f094f5882731218dcf13e4c5ca4c07f5d486.zip |
Enable CTS log files to exceed 2GB on 32-bit Linux build
Components: Framework
VK-GL-CTS issue: 4238
Change-Id: Ie9c58364f0bb44c3b2a15a71585d4801d0b12063
-rw-r--r-- | framework/delibs/cmake/CFlags.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/delibs/cmake/CFlags.cmake b/framework/delibs/cmake/CFlags.cmake index cde5aa55f..48bb0295d 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") |