-
Notifications
You must be signed in to change notification settings - Fork 615
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
Inhibit aggressive resource file name mangling. #884
Conversation
This addresses #883.
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
val additionalVFiles = additionalVResources.map((name: String) => { | ||
val mangledResourceName = name.replace("/", "_") | ||
// Don't convert a leading '/' to an '_'. Just skip the leading '/'. | ||
val nameWithoutLeadingSlash = if (name(0) == '/') name.substring(1) else name |
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.
Not a big deal but you could just use name.stripPrefix("/")
To ensure that we use the same file names for explicitly included resources and those discovered by the BlackBoxSourceHelper, I'm updating this to use a common method. This PR will then depend on chipsalliance/firrtl#882 and shouldn't be merged until that FIRRTL PR is merged. |
retest this please |
Related issue: #883.
Type of change: bug report
Impact: API modification
Although this should have minimal impact on existing code, it is observable.
Development Phase: implementation
Release Notes
Minimize the name mangling of output resource files.