Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing binaries for bazel #1082

Merged
merged 1 commit into from
Feb 25, 2023
Merged

Conversation

kon72
Copy link
Contributor

@kon72 kon72 commented Aug 1, 2022

Added some files to linker filegroup so that Bazel can build successfully in certain scenarios.

  • llvm-dwarfdump (needed for -gsource-map)
  • llvm-mc (--embed-file)
  • wasm-ctor-eval (-sEVAL_CTORS=1)
  • wasm-split (-sSPLIT_MODULE=1)
  • wasm2js (-sWASM=0)

@sbc100 sbc100 requested a review from walkingeyerobot August 1, 2022 16:15
@walkingeyerobot walkingeyerobot enabled auto-merge (squash) August 1, 2022 16:28
auto-merge was automatically disabled October 26, 2022 18:09

Head branch was pushed to by a user without write access

@kon72 kon72 force-pushed the fix_bazel branch 2 times, most recently from d72f598 to 0e341ef Compare October 26, 2022 18:18
@ghorn
Copy link

ghorn commented Feb 24, 2023

Can this be rebased and merged?

@@ -54,12 +54,17 @@ filegroup(
"bin/clang{bin_extension}",
"bin/llc{bin_extension}",
"bin/llvm-ar{bin_extension}",
"bin/llvm-dwarfdump{bin_extension}",
"bin/llvm-mc{bin_extension}",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this line to get it to work on an apple silicon mac. The error was

ERROR: /Users/greg/dev/repo/BUILD.bazel:39:10: Linking app failed: missing input file '@emscripten_bin_mac_arm64//:bin/llvm-mc'

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that file was removed from the prebuilt binaries. It should not be needed by emscripten.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@kon72
Copy link
Contributor Author

kon72 commented Feb 25, 2023

I removed llvm-mc from linker_files as it is no longer needed as of emscripten-core/emscripten#18298

@sbc100
Can you review and merge this change? Thanks!

@sbc100 sbc100 merged commit 17f6a2e into emscripten-core:main Feb 25, 2023
shlomif pushed a commit to shlomif/emsdk that referenced this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants