diff options
| author | Graydon Hoare <[email protected]> | 2011-05-04 16:53:42 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-05-04 16:59:21 -0700 |
| commit | cdb68224054eddddb0c1d2519f9c12b654a6ff8f (patch) | |
| tree | cf2adf7393a984ca1a96c73eddb43270aba1cca2 /src/comp/middle/metadata.rs | |
| parent | Add *.pyc to .gitignore (diff) | |
| download | rust-cdb68224054eddddb0c1d2519f9c12b654a6ff8f.tar.xz rust-cdb68224054eddddb0c1d2519f9c12b654a6ff8f.zip | |
Add a structure for passing option flags around the compiler, put it in session, and use it.
Diffstat (limited to 'src/comp/middle/metadata.rs')
| -rw-r--r-- | src/comp/middle/metadata.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/middle/metadata.rs b/src/comp/middle/metadata.rs index 2b4ad2a2..5f222cd4 100644 --- a/src/comp/middle/metadata.rs +++ b/src/comp/middle/metadata.rs @@ -687,9 +687,9 @@ fn encode_metadata(@trans.crate_ctxt cx, @ast.crate crate) ret C_postr(string_w.get_str()); } -fn write_metadata(@trans.crate_ctxt cx, bool shared, @ast.crate crate) { +fn write_metadata(@trans.crate_ctxt cx, @ast.crate crate) { auto llmeta = C_postr(""); - if (shared) { + if (cx.sess.get_opts().shared) { llmeta = encode_metadata(cx, crate); } |