Skip to content

linker: implement -build-mode:static on non-windows targets #3818

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

Open
laytan opened this issue Jun 27, 2024 · 1 comment
Open

linker: implement -build-mode:static on non-windows targets #3818

laytan opened this issue Jun 27, 2024 · 1 comment

Comments

@laytan
Copy link
Collaborator

laytan commented Jun 27, 2024

Should either:

  • build an object file that is ready to put in a static library with ar and the likes
  • or also actually call ar and put the one object file in it
@laytan laytan added the *nix label Jul 15, 2024
@ngortheone
Copy link

ngortheone commented Oct 12, 2024

I built odin compiler on FreeBSD today and tried building demo like this:

./odin build examples/demo -build-mode:static
Internal Compiler Error: TODO(bill): -build-mode:static on non-windows targets

illegal hardware instruction (core dumped)  ./odin build examples/demo -build-mode:static
if (build_context.build_mode == BuildMode_StaticLibrary) {
    compiler_error("TODO(bill): -build-mode:static on non-windows targets");
}

Can -build-mode:static be used with binaries or is it for libraries only?

@github-actions github-actions bot added the stale label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants