Skip to content

Commit

Permalink
Fix LLVM ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
chinedufn committed Jul 25, 2018
1 parent 269127a commit c8f0304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/backend/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl ToTokens for ast::Program {

(quote! {
#[allow(non_upper_case_globals)]
#[link_section = "__wasm_bindgen_unstable"]
#[link_section = "__wasm_bindgen,unstable"]
#[doc(hidden)]
pub static #generated_static_name: [u8; #generated_static_length] =
*#generated_static_value;
Expand Down
2 changes: 1 addition & 1 deletion crates/cli-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ fn extract_programs(module: &mut Module) -> Result<Vec<shared::Program>, Error>
Section::Custom(ref s) => s,
_ => continue,
};
if custom.name() != "__wasm_bindgen_unstable" {
if custom.name() != "__wasm_bindgen,unstable" {
continue;
}
to_remove.push(i);
Expand Down

0 comments on commit c8f0304

Please sign in to comment.