Skip to content

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

Open
@tmm1

Description

@tmm1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.linkingzig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions