Skip to content

Add a allow_asm option so virtual ISA based targets (JS/PNaCl/WAsm) can disallow the asm! macro. #27927

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
Aug 23, 2015

Conversation

DiamondLovesYou
Copy link
Contributor

No description provided.

@rust-highfive
Copy link
Contributor

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -168,6 +168,8 @@ pub struct TargetOptions {
/// currently only "gnu" is used to fall into LLVM. Unknown strings cause
/// the system linker to be used.
pub archive_format: String,
/// Is asm!() not allowed? Defaults to false
pub no_asm: bool,
Copy link
Member

Choose a reason for hiding this comment

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

Could this instead be inverted to allow_asm? Reading a double negative is sometimes a little confusing. Other than that though looks good to me!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough. Done.

@DiamondLovesYou DiamondLovesYou changed the title Add a no_asm option for virtual ISA based targets (JS/PNaCl/WAsm). Add a allow_asm option so virtual ISA based targets (JS/PNaCl/WAsm) can disallow the asm! macro. Aug 21, 2015
@alexcrichton
Copy link
Member

@bors: r+ 8b70e1e

@bors
Copy link
Collaborator

bors commented Aug 23, 2015

⌛ Testing commit 8b70e1e with merge 54b2ece...

@bors bors merged commit 8b70e1e into rust-lang:master Aug 23, 2015
@kryptan
Copy link
Contributor

kryptan commented Aug 29, 2015

Why would asm! need to be dissalowed on virtual ISA based targets? Shouldn't it just allow you to write in virtual ISA?

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.

6 participants