1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-04-07 04:41:06 +00:00

Fix LLVM ERROR

fixes 
This commit is contained in:
Chinedu Francis Nwafili 2018-07-25 07:24:39 -04:00
parent 269127a5c5
commit c8f0304163
No known key found for this signature in database
GPG Key ID: 8AD7D5AF294ECA5D
2 changed files with 2 additions and 2 deletions
crates
backend/src
cli-support/src

@ -76,7 +76,7 @@ impl ToTokens for ast::Program {
(quote! { (quote! {
#[allow(non_upper_case_globals)] #[allow(non_upper_case_globals)]
#[link_section = "__wasm_bindgen_unstable"] #[link_section = "__wasm_bindgen,unstable"]
#[doc(hidden)] #[doc(hidden)]
pub static #generated_static_name: [u8; #generated_static_length] = pub static #generated_static_name: [u8; #generated_static_length] =
*#generated_static_value; *#generated_static_value;

@ -287,7 +287,7 @@ fn extract_programs(module: &mut Module) -> Result<Vec<shared::Program>, Error>
Section::Custom(ref s) => s, Section::Custom(ref s) => s,
_ => continue, _ => continue,
}; };
if custom.name() != "__wasm_bindgen_unstable" { if custom.name() != "__wasm_bindgen,unstable" {
continue; continue;
} }
to_remove.push(i); to_remove.push(i);