Skip to content

Commit ee65c19

Browse files
committed
v1.0 release
1 parent 623c2eb commit ee65c19

2 files changed

Lines changed: 25 additions & 22 deletions

File tree

premake5.lua

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

tests/input_window_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ bool inputWindowTest()
409409

410410
// event driver
411411
PalEventDriver* eventDriver = nullptr;
412-
PalEventDriverCreateInfo eventDriverCreateInfo{0} = {0};
412+
PalEventDriverCreateInfo eventDriverCreateInfo = {0};
413413

414414
// fill the event driver create info
415415
eventDriverCreateInfo.allocator = nullptr; // default allocator

0 commit comments

Comments
 (0)