Skip to content

Instantly share code, notes, and snippets.

@brson
Created October 16, 2023 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/6639532cbc15cf117dbb545cfdafbe92 to your computer and use it in GitHub Desktop.
Save brson/6639532cbc15cf117dbb545cfdafbe92 to your computer and use it in GitHub Desktop.
Start from the 0.114.1 branch
Add a "dwarf" feature to wasm-opt, non-default
Add a "dwarf" feature to wasm-opt-sys, non-default
Have the wasm-opt dwarf feature activate the wasm-opt-sys dwarf feature
In wasm-opt-sys build.rs:
If the CARGO_FEATURE_DWARF is not set:
Don't include the "llvm_files"
Don't set the BUILD_LLVM_DWARF build flags
In conformance-tests disable the dwarf_line_info test when dwarf is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment