-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bazelify compiler's global package database #859
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
52ed636
Split haskell_toolchain
mboes 0ff1690
Bazelify compiler's global package database
mboes e37984b
Hazel: Use global Hazel names for rts and unix dependencies
mboes 2b1aae3
Filter out transitive Haskell dependencies from extra-libraries
mboes afc56fd
Exclude Haskell libraries from linking ext C libs
aherrmann 94074e1
GHC BUILD template, public visibility
aherrmann d379bd8
haskell_register_ghc_nixpkgs: Custom BUILD file
aherrmann a9610ac
pkgdb_to_bzl: Multiply occurring fields
aherrmann 4cb0730
pkgdb_to_bzl: Allow empty hs-libraries
aherrmann f613700
Add alex & happy to Hazel tests
aherrmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
load( | ||
"@io_tweag_rules_haskell//haskell:cc_toolchain_config.bzl", | ||
"cc_toolchain_config", | ||
) | ||
load( | ||
"@io_tweag_rules_haskell//haskell:haskell.bzl", | ||
"haskell_import", | ||
"haskell_toolchain", | ||
) | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
%{toolchain} | ||
|
||
filegroup( | ||
name = "bin", | ||
srcs = glob(["bin/*"]), | ||
) | ||
|
||
# Expose embedded MinGW toolchain when on Windows. | ||
|
||
filegroup( | ||
name = "mingw", | ||
srcs = glob(["mingw/**"]), | ||
) | ||
|
||
cc_toolchain_suite( | ||
name = "cc_toolchain", | ||
toolchains = { | ||
"x64_windows": ":cc-compiler-mingw64", | ||
"x64_windows|ghc-mingw-gcc": ":cc-compiler-mingw64", | ||
}, | ||
) | ||
|
||
# Keep in sync with @bazel_tools//cpp:cc-compiler-x64_windows definition. | ||
cc_toolchain( | ||
name = "cc-compiler-mingw64", | ||
all_files = ":mingw", | ||
ar_files = ":mingw", | ||
as_files = ":mingw", | ||
compiler_files = ":mingw", | ||
cpu = "x64_windows", | ||
dwp_files = ":mingw", | ||
linker_files = ":mingw", | ||
objcopy_files = ":mingw", | ||
strip_files = ":mingw", | ||
supports_param_files = 0, | ||
toolchain_config = ":ghc_windows_mingw64_config", | ||
toolchain_identifier = "ghc_windows_mingw64", | ||
) | ||
|
||
cc_toolchain_config(name = "ghc_windows_mingw64_config") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we filter by whether the target is in an external workspace? This would also filter Hazel targets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test will be removed in a future PR (that actually and finally removes
HaskellPrebuiltPackageInfo
). In this PR I'm just doing the simplest thing.