-
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
CPP macro are only generated when 'version' attribute is specified. #446
Conversation
ac1c814
to
6bbb1d0
Compare
haskell/private/packages.bzl
Outdated
"-fno-version-macros", | ||
]) | ||
|
||
# Expose all prebuilt dependencies |
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 should not be indented, that's buildifier
fault ;(
#445 was merged, and this PR works perfectly on a client huge codebase. |
6bbb1d0
to
89027de
Compare
9476a53
to
9e6488c
Compare
9e6488c
to
e265e9d
Compare
@mrkkrp @Profpatsch @mboes ping? |
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.
LGTM
This fix #414.
In #414, we observed that CPP version macro generated by GHC can leads to conflict if two bazel targets have the same name, hence the same GHC package name. For example
//foo:bar
and//frob:bar
will have package namebar
and will generatedVERSION_bar
macros.This PR deactivate macro generation if rule does not have a
version
attribute. see #414 for discussion.