mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 04:16:35 +08:00
cmake:add missing cflag "-D_FILE_OFFSET_BITS=64" of sim
The -D_FILE_OFFSET_BITS=64 parameter is missing during the CMake compilation of the sim (simulator) build, which causes incorrect version invocations of interfaces such as hostfs_stat. Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
@@ -30,3 +30,7 @@ if(NOT CONFIG_BUILD_FLAT)
|
||||
target_include_directories(arch_interface BEFORE PUBLIC ${CONFIG_ARCH_CHIP}
|
||||
common)
|
||||
endif()
|
||||
|
||||
if(CONFIG_FS_LARGEFILE)
|
||||
target_compile_options(nuttx PRIVATE -D_FILE_OFFSET_BITS=64)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user