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:
guohao15
2025-07-21 11:06:49 +08:00
committed by Xiang Xiao
parent 48f5b8f697
commit 4cf07dd756
+4
View File
@@ -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()