microsoft / microsoft/mimalloc

Crash on Clang-cl compiler with MSVC linker in Windows

Open
#631 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

While compiling with Clang-cl, "__clang__" is defined by compiler internally, but "__attribute((weak))" is not supported by MSVC linker. This cause linker's interal error in alloc.c.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in alloc.c and reproduce the Windows build with Clang-cl using the MSVC linker. Inspect the handling of the __clang__ and weak-attribute conditions; done means the project compiles and links successfully with this toolchain without the linker internal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.