aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom Palvelev <artyompp@google.com>2024-02-14 15:12:13 +0000
committerArtyom Palvelev <artyompp@google.com>2024-02-14 15:12:13 +0000
commite56bed6cb60e16803c2fcfada1de91a23f5443e0 (patch)
treea466c0d4fc1de491e9e0f14898f92f82795b2991
parentccadb45ff30303337a943861111781294e344d6a (diff)
downloadgamesdk-e56bed6cb60e16803c2fcfada1de91a23f5443e0.tar.gz
fix memory-advice scripts for Windows compatibility
Since Windows doesn't have `touch` command, we suggest that we use `echo > filename` command instead. Test: build Hogger sample and run it Fix: 322119350 Change-Id: Ie2f17f418c9e1fc1da43e6c5944d652d314b4be0
-rw-r--r--games-memory-advice/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/games-memory-advice/CMakeLists.txt b/games-memory-advice/CMakeLists.txt
index 1503e75c..6a092ea6 100644
--- a/games-memory-advice/CMakeLists.txt
+++ b/games-memory-advice/CMakeLists.txt
@@ -95,7 +95,7 @@ file(APPEND ${mri_file} "end\n")
set(output_archive_placeholder_file ${CMAKE_CURRENT_BINARY_DIR}/${output_archive}.placeholder.cpp)
add_custom_command(OUTPUT ${output_archive_placeholder_file}
- COMMAND touch ${output_archive_placeholder_file}
+ COMMAND echo > ${output_archive_placeholder_file}
DEPENDS memory_advice_static_pre)