
Hassan Al-Awwadi pushed to branch wip/haanss/depdir at Glasgow Haskell Compiler / GHC Commits: 4ca88f80 by Hassan Al-Awwadi at 2025-08-19T11:16:03+02:00 add explicit package directory to makefile test of addDependentDirectory - - - - - 1 changed file: - testsuite/tests/th/Makefile Changes: ===================================== testsuite/tests/th/Makefile ===================================== @@ -55,25 +55,25 @@ TH_Depends_Dir: mkdir DONT_TRIGGER_RECOMP # First build with an empty dependent directory - '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package template-haskell -v0 TH_Depends_Dir + '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package directory -package template-haskell -v0 TH_Depends_Dir ./TH_Depends_Dir # Create a file in the dependent directory to trigger recompilation sleep 2 echo "dummy" > TRIGGER_RECOMP/dummy.txt - '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package template-haskell -v0 TH_Depends_Dir + '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package directory -package template-haskell -v0 TH_Depends_Dir ./TH_Depends_Dir # Remove the file to check that recompilation is triggered sleep 2 $(RM) TRIGGER_RECOMP/dummy.txt - '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package template-haskell -v0 TH_Depends_Dir + '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package directory -package template-haskell -v0 TH_Depends_Dir ./TH_Depends_Dir # Should not trigger recompilation sleep 2 echo "dummy" > DONT_TRIGGER_RECOMP/dummy.txt - '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package template-haskell -v0 TH_Depends_Dir + '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package directory -package template-haskell -v0 TH_Depends_Dir ./TH_Depends_Dir # Should trigger a recompilation. Note that we should also see the change @@ -81,7 +81,7 @@ TH_Depends_Dir: # as we recompile, it just doesn't *trigger* a recompilation. sleep 2 rm -rf TRIGGER_RECOMP - '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package template-haskell -v0 TH_Depends_Dir + '$(TEST_HC)' $(TEST_HC_OPTS) $(ghcThWayFlags) --make -package directory -package template-haskell -v0 TH_Depends_Dir ./TH_Depends_Dir T8333: View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4ca88f80ebd99d479885b44d6c6a8474... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4ca88f80ebd99d479885b44d6c6a8474... You're receiving this email because of your account on gitlab.haskell.org.