aboutsummaryrefslogtreecommitdiffstats
path: root/test/core_deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-06-24 10:50:17 +0200
committerLoïc Hoguin <[email protected]>2019-06-24 10:50:17 +0200
commitc39d3f7c0bd4d8fb33ff6b33843407a3676a3c4b (patch)
tree946b71830b53c32aecfb8dc5e4c3e570eb724731 /test/core_deps.mk
parent8b2c6621d1c08a5bcb0c87a4c11c4ad95e7a0f48 (diff)
downloaderlang.mk-c39d3f7c0bd4d8fb33ff6b33843407a3676a3c4b.tar.gz
erlang.mk-c39d3f7c0bd4d8fb33ff6b33843407a3676a3c4b.tar.bz2
erlang.mk-c39d3f7c0bd4d8fb33ff6b33843407a3676a3c4b.zip
Skip the "rebuild" part of the "ln" test on Windows
By default MSYS2 will copy and not link, altering Erlang.mk's behavior. To properly link an option must be enabled and administrative privileges granted.
Diffstat (limited to 'test/core_deps.mk')
-rw-r--r--test/core_deps.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk
index 8facf4d..e35546c 100644
--- a/test/core_deps.mk
+++ b/test/core_deps.mk
@@ -194,6 +194,10 @@ core-deps-dep-built-ln: init
$i "Build the application"
$t $(MAKE) -C $(APP) $v
+# On MSYS2 "ln" will by default not create symbolic links because
+# it requires an option to be enabled and administrative privileges.
+# The "rebuild" part of the test is therefore skipped on Windows.
+ifneq ($(PLATFORM),msys2)
$i "Touch one cowlib file to mark it for recompilation"
$t $(SLEEP)
$t touch $(APP)/deps/cowlib/src/cow_http.erl
@@ -203,11 +207,13 @@ core-deps-dep-built-ln: init
$(APP)/cowlib/cowlib.d \
$(APP)/cowlib/ebin/cowlib.app \
$(APP)/cowlib/ebin/cow_http.beam | sort > $(APP)/EXPECT
+
$t $(SLEEP)
$t $(MAKE) -C $(APP) $v
# Files in .git might end up modified due to the id generation in the .app file.
$t find $(APP)/cowlib -type f -newer $(APP)/EXPECT | grep -v ".git" | sort | diff $(APP)/EXPECT -
$t rm $(APP)/EXPECT
+endif
core-deps-dep-commit: init