Skip to content

Commit 29ee70e

Browse files
committed
Limit passic compiler specific flags when that compiler is used
1 parent a2ce903 commit 29ee70e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

premake5.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ workspace "quickjs"
6868
optimize "Speed"
6969
inlining "Auto"
7070

71-
filter { "language:not C#" }
71+
-- Should apply only for Visual C++
72+
filter { "language:not C#" and "toolset:msc" }
7273
defines { "_CRT_SECURE_NO_WARNINGS" }
7374
buildoptions { "/std:c++latest" }
7475
systemversion "latest"
@@ -104,6 +105,7 @@ project "quickjs"
104105
"quickjs-jsx.h",
105106
}
106107

108+
107109
if _OPTIONS["storage"] then
108110
exceptionhandling "On"
109111
files {

0 commit comments

Comments
 (0)