We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3677

Summary: SDL2 cannot be compiled with CLANG, LLVM-vs2014, vs2017, v141
Product: SDL Reporter: Paul <Paul.Hancock.17041993>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Windows 10   
Attachments: result of building via LLVM-vs2014 chain
remaining warnings after removing files

Description Paul 2017-06-22 05:46:13 UTC
Created attachment 2766 [details]
result of building via LLVM-vs2014 chain

Flooded with bad defines and cant find identifiers correctly, bad includes.
Comment 1 Paul 2017-06-22 09:40:28 UTC
Created attachment 2767 [details]
remaining warnings after removing files

Ok, after removing SDL_string.c and SDL_fillrect.c, it compiled with a long list of warnings that need fixing, which might be fine for now as I don't need either of those components...
Comment 2 Paul 2017-06-22 09:42:34 UTC
I will also note, some log and build directories need fixing in cmake as it currently places them outside the build tree, you'll see which ones when you do a full build.
Comment 3 Sam Lantinga 2017-08-19 10:13:43 UTC
This is partially fixed with this commit, allowing SDL applications to build with clang on Visual Studio:
https://hg.libsdl.org/SDL/rev/6ae35c5f7f7b

We don't currently support building SDL with LLVM on Windows, so I'm lifting this bug from blocking the 2.0.6 release.

Please feel free to submit a patch if you implement this yourself.