Skip to content

Commit a1a6374

Browse files
committed
REVERT: 32-bit compilation flag
1 parent 6d0446e commit a1a6374

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ option (pfs_BUILD_TESTS "Build tests" ON)
3333

3434
add_compile_options (-std=c++11 -Wall -Wextra -pedantic -Werror)
3535

36+
# Ensure that off_t is 64-bits even on 32-bit systems
37+
add_compile_options (-D_FILE_OFFSET_BITS=64)
38+
3639
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out)
3740
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
3841
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Run `cmake . && make`
1414
### Currently supported CMake configuration flags:
1515

1616
- `CMAKE_BUILD_TYPE=<Debug|Release>`: Standard CMake flags to control build type (DEFAULT: Debug)
17+
- `pfs_BUILD_32BIT=<ON|OFF>`: ON to compile a 32-bit binary. OFF to compile using the default configuration of your compiler (DEFAULT: `OFF`))
1718
- `pfs_BUILD_SHARED_LIBS=<ON|OFF>`: ON to compile a shared library. OFF to compile a static library (DEFAULT: Inherit `BUILD_SHARE_LIBS`, which is `OFF` by default))
1819
- `pfs_BUILD_ASAN=<ON|OFF>`: ON to enable address sanitizer (DEFAULT: `OFF`)
1920
- `pfs_BUILD_SAMPLES=<ON|OFF>`: ON to build the sample programs (DEFAULT: `ON`)

0 commit comments

Comments
 (0)