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

Added ghidra build script #11

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nimashoghi
Copy link

I was told on the Compiler Explorer Discord that I should post this here.

This script basically does the following:

  1. Installs all dependencies needed for Ghidra (binutils-dev and zlib1g-dev)
  2. Clones my fork of the Ghidra repository, which fixes a runtime error I had when using Ghidra's decompiler with Compiler Explorer.
  3. Builds the Ghidra decompiler tooling and the Ghidra SLEIGH compiler.
  4. Uses the Ghidra SLEIGH compiler to generate architecture specification files for x86-64 and x86.
  5. Moves these specification files to /usr/local/share/ghidra/, so it can be used by the Ghidra compiler explorer tooling.

See this PR for more information.

@AbrilRBS
Copy link
Member

If you see how it's done for other compilers, they skip the build if the existing version is already the latest one (https://github.com/compiler-explorer/misc-builder/blob/main/build/build-rustc-cg-gcc.sh#L30) Could you also implement this?

@mattgodbolt
Copy link
Member

Catching up here: can you respond to @RubenRBS's comment here - it's important for us not to waste resources building unchanged code over and over again. If that's not clear, let me know and I can try picking this up.

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.

3 participants