Skip to content

Fix rmc codegen to check for no-codegen option#601

Merged
celinval merged 1 commit intomodel-checking:mainfrom
celinval:fix-no-codegen
Oct 29, 2021
Merged

Fix rmc codegen to check for no-codegen option#601
celinval merged 1 commit intomodel-checking:mainfrom
celinval:fix-no-codegen

Conversation

@celinval
Copy link
Copy Markdown
Contributor

Description of changes:

RMC code generation was creating artifacts even if rustc was run with
-Z no-codegen. I changed the codegen to check for this option before
writing the json files.

This issue was uncovered by my change to move the rmc flags to
rmc-rustc. This script is used during compiletest. In the check stage,
the test runs rustc with --no-codegen.

Call-outs:

This code will be tested once we merge #597 PR.

Testing:

  • How is this change tested?

  • Is this a refactor change?

Checklist

  • Each commit message has a non-empty body, explaining why the change was made
  • Methods or procedures are documented
  • Regression or unit tests are included, or existing tests cover the modified code
  • My PR is restricted to a single feature or bugfix

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

RMC code generation was creating artifacts even if rustc was run with
-Z no-codegen. I changed the codegen to check for this option before
writing the json files.

This issue was uncovered by my change to move the rmc flags to
rmc-rustc. This script is used during compiletest. In the check stage,
the test runs rustc with --no-codegen.
@celinval celinval requested a review from zhassan-aws October 29, 2021 19:07
Copy link
Copy Markdown
Contributor

@zhassan-aws zhassan-aws left a comment

Choose a reason for hiding this comment

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

LGTM.

@celinval celinval merged commit 60645be into model-checking:main Oct 29, 2021
@celinval celinval deleted the fix-no-codegen branch October 29, 2021 20:29
tedinski pushed a commit to tedinski/rmc that referenced this pull request Apr 26, 2022
RMC code generation was creating artifacts even if rustc was run with
-Z no-codegen. I changed the codegen to check for this option before
writing the json files.

This issue was uncovered by my change to move the rmc flags to
rmc-rustc. This script is used during compiletest. In the check stage,
the test runs rustc with --no-codegen.
tedinski pushed a commit that referenced this pull request Apr 27, 2022
RMC code generation was creating artifacts even if rustc was run with
-Z no-codegen. I changed the codegen to check for this option before
writing the json files.

This issue was uncovered by my change to move the rmc flags to
rmc-rustc. This script is used during compiletest. In the check stage,
the test runs rustc with --no-codegen.
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.

2 participants