Skip to content

Instantly share code, notes, and snippets.

@cceckman
Created March 18, 2014 04:42
Show Gist options
  • Save cceckman/9613689 to your computer and use it in GitHub Desktop.
Save cceckman/9613689 to your computer and use it in GitHub Desktop.
BC output dependent on other targets
#!/bin/bash
mkdir bc
mkdir bclink
git clone [email protected]:thestinger/rust-core
rustc --emit=bc --out-dir=bc rust-core/core/lib.rs
rustc --emit=bc,link --out-dir=bclink rust-core/core/lib.rs
diff bc/core.bc bclink/core.bc
@cceckman
Copy link
Author

Demonstrates that the core.bc file changes when the output changes, at least for rust-core. Unsure if a bug in rustc or libcore, or if this is expected behavior.

Version is rustc 0.10-pre (0a181a8 2014-03-17 09:57:06 -0700)
rust-core is dd0584450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment