Skip to content

Commit

Permalink
Merge pull request #594 from tweag/gd-custom-main
Browse files Browse the repository at this point in the history
Binary with custom main on Windows
  • Loading branch information
mboes committed Jan 18, 2019
2 parents 86f3eee + 045fbc1 commit cc100e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ jobs:
- bash: |
# Simple haskell binary
/c/bazel/bazel.exe build --compiler=msys-gcc "///tests/binary-simple" # first '/' gets eaten up
/c/bazel/bazel.exe build --compiler=msys-gcc "///tests/binary-custom-main"
displayName: 'Run Bazel'
5 changes: 4 additions & 1 deletion tests/binary-custom-main/BUILD
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
load(
"@io_tweag_rules_haskell//haskell:haskell.bzl",
"haskell_import",
"haskell_test",
)

package(default_testonly = 1)

haskell_import(package = "base")

haskell_test(
name = "binary-custom-main",
srcs = ["foo.hs"],
visibility = ["//visibility:public"],
deps = ["@hackage//:base"],
deps = [":base"],
)

0 comments on commit cc100e9

Please sign in to comment.