[Mesa-dev] [Bug 100201] llvmpipe Windows scons build with MSVC toolchain and LLVM 4.0 fails
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 27 20:04:22 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=100201
Anonymous Helper <anonymous at dodgeit.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|llvmpipe Windows scons |llvmpipe Windows scons
|build with Visual Studio |build with MSVC toolchain
|2015 toolchain and LLVM 4.0 |and LLVM 4.0 fails
|fails |
--- Comment #4 from Anonymous Helper <anonymous at dodgeit.com> ---
These changes in mesa code in include/c11/threads.h solve both undefined and
redefinition errors with xtime with MSVC 2015 and 2017, but compilation still
fails in the end during linking due to unresolved symbols.
#include <time.h>
+#if _MSC_VER >= 1900
+#include <thr/xtimec.h>
+#endif
+#if _MSC_VER < 1900
struct xtime {
time_t sec;
long nsec;
};
typedef struct xtime xtime;
+#endif
Jose Fonseca, warned me in a previous comment that I was using MSVC 2017
toolset, but it turns out that if I install the optional MSVC 2015 Update 3
toolset for MSVC 2017, Scons can use either toolset just fine.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170327/2a9b1ff1/attachment.html>
More information about the mesa-dev
mailing list