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

zig cc doesn't pass through -Wl,--large-address-aware #21981

Open
tmm1 opened this issue Nov 13, 2024 · 1 comment
Open

zig cc doesn't pass through -Wl,--large-address-aware #21981

tmm1 opened this issue Nov 13, 2024 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior linking zig cc Zig as a drop-in C compiler feature

Comments

@tmm1
Copy link

tmm1 commented Nov 13, 2024

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

i have a i686-w64-mingw32-gcc wrapper for zig cc -target x86-windows-gnu

checking whether i686-w64-mingw32-gcc works... no
Failed commandline was:
--------------------------------------------------
i686-w64-mingw32-gcc conftest.c -m32  -Wall -I. -I$(SRCPATH) -D_POSIX_C_SOURCE=200112L -march=i686 -mfpmath=sse -msse -msse2   -Werror=unknown-warning-option -Werror=unknown-attributes -Werror=attributes -Werror=ignored-attributes   -lshell32 -m32   -Wl,--large-address-aware -Wl,--dynamicbase,--nxcompat,--tsaware -o conftest
error: unsupported linker arg: --large-address-aware
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) {  return 0; }
--------------------------------------------------
DIED: No working C compiler found.

it seems to be supported by lld: https://reviews.llvm.org/D40015

Expected Behavior

expect zig cc to pass through the argument

@tmm1 tmm1 added the bug Observed behavior contradicts documented or intended behavior label Nov 13, 2024
@tmm1 tmm1 changed the title zig cc doesn't pass through -Wl,-- zig cc doesn't pass through -Wl,--large-address-aware Nov 13, 2024
@tmm1 tmm1 changed the title zig cc doesn't pass through -Wl,--large-address-aware zig cc doesn't pass through -Wl,--large-address-aware Nov 13, 2024
@alexrp alexrp added zig cc Zig as a drop-in C compiler feature linking labels Nov 13, 2024
@tmm1
Copy link
Author

tmm1 commented Nov 13, 2024

another one that doesn't work is -Wl,--allow-multiple-definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior linking zig cc Zig as a drop-in C compiler feature
Projects
None yet
Development

No branches or pull requests

2 participants