Skip to content

Commit

Permalink
REVERT: 32-bit compilation flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrugman committed May 19, 2024
1 parent 6d0446e commit a1a6374
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ option (pfs_BUILD_TESTS "Build tests" ON)

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

# Ensure that off_t is 64-bits even on 32-bit systems
add_compile_options (-D_FILE_OFFSET_BITS=64)

set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/out)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Run `cmake . && make`
### Currently supported CMake configuration flags:

- `CMAKE_BUILD_TYPE=<Debug|Release>`: Standard CMake flags to control build type (DEFAULT: Debug)
- `pfs_BUILD_32BIT=<ON|OFF>`: ON to compile a 32-bit binary. OFF to compile using the default configuration of your compiler (DEFAULT: `OFF`))
- `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))
- `pfs_BUILD_ASAN=<ON|OFF>`: ON to enable address sanitizer (DEFAULT: `OFF`)
- `pfs_BUILD_SAMPLES=<ON|OFF>`: ON to build the sample programs (DEFAULT: `ON`)
Expand Down

0 comments on commit a1a6374

Please sign in to comment.