-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Add deterministic prefix in Library.get_flags() (NFC) #23225
Add deterministic prefix in Library.get_flags() (NFC) #23225
Conversation
This factors duplicate routines to add deterministic prefix paths out to `Library.get_cflags()`. Suggested in emscripten-core#23222 (comment).
tools/system_libs.py
Outdated
source_dir = utils.path_from_root() | ||
if self.batch_inputs: | ||
relative_source_dir = os.path.relpath(source_dir, build_dir) | ||
cflags += [f'-ffile-prefix-map={relative_source_dir}={DETERMINISITIC_PREFIX}'] |
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.
Can you make these two lines unconditional and avoid the need for the new self.batch_inputs
?
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.
Done
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.
Do you have any other comments?
This factors duplicate routines to add deterministic prefix paths out to
Library.get_cflags()
. Suggested in#23222 (comment).