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

Fix some issues when building EOSIO contracts #115

Merged
merged 4 commits into from
Apr 5, 2023
Merged

Conversation

spoonincode
Copy link
Member

This is a backport of EOSIO/eosio.cdt#968 / EOSIO/eosio.cdt#1070 that resolves EOSIO/eosio.cdt#742.

  • Fix dependency file generation (-MD/-MMD) to hold the original source and not the generated temporary file.
  • Make temporary filenames unique to avoid races in parallel builds.

if (!opts.link) {
output = opts.output_fn.empty() ? "a.out" : opts.output_fn;
} else {
SmallString<64> res;
llvm::sys::fs::createTemporaryFile("eosio", ".o", res);
Copy link
Member

Choose a reason for hiding this comment

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

"antelope" ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would like to see that as something other than 'eosio' too. But, it's not the end of the world as it is a consumed temporary.

if (!opts.link) {
output = opts.output_fn.empty() ? "a.out" : opts.output_fn;
} else {
SmallString<64> res;
llvm::sys::fs::createTemporaryFile("eosio", ".o", res);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would like to see that as something other than 'eosio' too. But, it's not the end of the world as it is a consumed temporary.

@spoonincode spoonincode merged commit 369119d into main Apr 5, 2023
@spoonincode spoonincode deleted the filename_fixes branch April 5, 2023 02:27
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.

eosio.cdt writes to predictable and conflicting file in /tmp
4 participants