Skip to content

unsupported option '-mwindows' for target 'aarch64-w64-mingw32' #64464

@brechtsanders

Description

@brechtsanders

When doing a native build of NSPR 4.35 on Windows on Arm using LLVM 17.0.0 RC1 I got the error unsupported option '-mwindows' for target 'aarch64-w64-mingw32'.

However when building for MinGW-w64 the -mwindows is normally supported (at least I know it is for GCC).

Full output:

make -C config export make[1]: Entering directory '/r/winlibs_llvm17rc1/11064.nspr/nspr-4.35/nspr/config' /d/Prog/winlibs_llvm17rc1/llvm-mingw-20230730-ucrt-aarch64/bin/clang.exe -mwindows -o now.o -c -Wno-int-conversion -pthread -g -UNDEBUG -DDEBUG_brecht -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DDEBUG=1 -DXP_PC=1 -DWIN32=1 -DWINNT=1 -D_ARM64_=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG now.c clang-17: error: unsupported option '-mwindows' for target 'aarch64-w64-mingw32' make[1]: *** [../config/rules.mk:450: now.o] Error 1 make[1]: Leaving directory '/r/winlibs_llvm17rc1/11064.nspr/nspr-4.35/nspr/config' make: *** [config/rules.mk:163: export] Error 2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions