Skip to content
This repository was archived by the owner on Nov 19, 2022. It is now read-only.

Commit c469b83

Browse files
committed
Backward a time of file that regenerated on symlink restoring
1 parent 762a590 commit c469b83

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

system/support/build.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ if(EXISTS ${build_dir}/zephyr/ )
4040
)
4141
endif()
4242

43+
if(EXISTS ${build_dir}/build.ninja )
44+
execute_process(
45+
COMMAND python3 ${CMAKE_CURRENT_LIST_DIR}/copy_timestamp.py
46+
${build_dir}/build.ninja ${build_dir}/zephyr/misc/generated/syscalls_subdirs.txt
47+
)
48+
endif()
49+
4350
set(run_preproc_script bash ${ARDUINO_BUILD_PATH}/preproc/preproc.sh)
4451

4552
if(NOT WIN32)

system/support/copy_timestamp.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import os
2+
import sys
3+
4+
ts = os.stat(sys.argv[1]).st_mtime
5+
os.utime(sys.argv[2], (ts-100000000, ts-100000000))

0 commit comments

Comments
 (0)