Skip to content

Add detection when compiling with Clang and Ninja under Windows#2877

Merged
Cyan4973 merged 1 commit intofacebook:devfrom
jannkoeker:dev
Dec 1, 2021
Merged

Add detection when compiling with Clang and Ninja under Windows#2877
Cyan4973 merged 1 commit intofacebook:devfrom
jannkoeker:dev

Conversation

@jannkoeker
Copy link
Contributor

According to the Clang documentation Clang creates MSVC-compatible libraries by default when compiling for Windows. This includes the names of the resulting library files.
This fixes the ninja error multiple rules generate lib/zstd.lib [-w dupbuild=err] for Clang under Windows.

Fixes #2248 and propably #2770

 Prevents multiple rules error when building with ninja and clang under windows
@Cyan4973 Cyan4973 merged commit bf0a746 into facebook:dev Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiple rules generate zstd.lib

4 participants