Skip to content

Loading…

Protect touch call in test action with #ifndef WINDOWS macro #343

Merged
merged 1 commit into from

2 participants

@NeonGraal

Trying to build yesod under windows but it was failing with:
main.hs:41:13 Not in scope: 'touch'

@snoyberg snoyberg merged commit b57bee2 into yesodweb:master
@snoyberg
Yesod Web Framework member

Thanks for the submission!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 2 additions and 0 deletions.
  1. +2 −0 yesod/main.hs
View
2 yesod/main.hs
@@ -38,7 +38,9 @@ main = do
#endif
"devel":rest -> devel isDev rest
"test":_ -> do
+#ifndef WINDOWS
touch
+#endif
rawSystem' cmd ["configure", "--enable-tests", "-flibrary-only"]
rawSystem' cmd ["build"]
rawSystem' cmd ["test"]
Something went wrong with that request. Please try again.