mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 12:48:09 +00: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:
parent
011fd50bcd
commit
635d81a76b
1 changed files with 4 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue