@@ -47,31 +47,34 @@ workspace "PAL_workspace"
4747
4848 filter {}
4949
50- if (_OPTIONS [" compiler" ] == " clang" ) then
51- toolset (" clang" )
52- end
53-
5450 if (_ACTION == " gmake2" ) then
55- buildoptions {
56- " -target x86_64-w64-windows-gnu" ,
57- " -I" .. ucrt .. " /include" ,
58- " -I" .. ucrt .. " /ucrt/include" ,
59- " -I" .. ucrt .. " /mingw/include" ,
60-
61- -- warnings
62- " -Wno-switch" , -- for switch statements
63- " -Wno-switch-enum" -- for switch statements
64- }
65-
66- linkoptions {
67- " -target x86_64-w64-windows-gnu" ,
68- " -L" .. ucrt .. " /lib" ,
69- " -L" .. ucrt .. " /mingw/lib"
70- }
71-
51+ if (_OPTIONS [" compiler" ] == " clang" ) then
52+ toolset (" clang" )
53+
54+ buildoptions {
55+ " -target x86_64-w64-windows-gnu" ,
56+ " -I" .. ucrt .. " /include" ,
57+ " -I" .. ucrt .. " /ucrt/include" ,
58+ " -I" .. ucrt .. " /mingw/include" ,
59+
60+ -- warnings
61+ " -Wno-switch" , -- for switch statements
62+ " -Wno-switch-enum" -- for switch statements
63+ }
64+
65+ linkoptions {
66+ " -target x86_64-w64-windows-gnu" ,
67+ " -L" .. ucrt .. " /lib" ,
68+ " -L" .. ucrt .. " /mingw/lib"
69+ }
70+ end
7271 end
7372
7473 if (_ACTION == " vs2022" ) then
74+ if (_OPTIONS [" compiler" ] == " clang" ) then
75+ toolset (" clang" )
76+ end
77+
7578 defines {
7679 " _CRT_SECURE_NO_WARNINGS"
7780 }
0 commit comments