Skip to content
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

bomtrace3 handle gcc -MMD option with -MD instead #71

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

yonhan3
Copy link
Collaborator

@yonhan3 yonhan3 commented Feb 15, 2024

When existing gcc cmd has -MMD option, then the dependency file does not contain system headers.
This is not desired for OmniBOR ADG, which prefers -MD option.
Our solution is to run a child process with the -MD option instead, also we just need to use -E option to get the dependency file.
Also created a few generate_depfile modes for user to configure the behavior of generating dependency file.
Also miscellaneous changes for gcc handling.

Signed-off-by: Yongkui Han <yonhan@cisco.com>
@yonhan3 yonhan3 requested a review from edwarnicke February 15, 2024 15:31
@yonhan3 yonhan3 merged commit a8f4772 into omnibor:main Feb 15, 2024
3 checks passed
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.

1 participant