Skip to content

Copy source location to generate runtime paths. #1947

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

Merged
merged 1 commit into from
Mar 13, 2018

Conversation

samth
Copy link
Member

@samth samth commented Feb 6, 2018

Fix found by @lexi-lambda. Bug reported by dbenoit@fedoraproject.org.

@@ -186,7 +186,8 @@
(path-of
#,(datum->syntax
#'orig-stx
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it doesn’t really matter in this case, since this-expression-source-file is a macro and the lexical context on the surrounding syntax object is irrelevant, but it seems slightly suspect to adjust the lexical context here at all. It’d work fine to just use #'here for the lexical context and #'orig-stx for the source location information.

@dbenoit17
Copy link

I have tested and can confirm this removes many of the references to build-time rpaths in compiled files. Thanks so much!

@samth
Copy link
Member Author

samth commented Mar 12, 2018

@mflatt Is this ok to merge?

@mflatt
Copy link
Member

mflatt commented Mar 13, 2018

LGTM

Fix found by @lexi-lambda. Bug reported by dbenoit@fedoraproject.org.
@samth samth force-pushed the runtime-path-fix branch from 1cd863b to 0a00e82 Compare March 13, 2018 22:23
@samth samth merged commit 0a00e82 into racket:master Mar 13, 2018
@samth samth deleted the runtime-path-fix branch March 13, 2018 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants