Skip to content

Commit 2519e1a

Browse files
authored
Merge pull request c-smile#6 from iongion/fix-linux-compilation
Limit passing compiler specific flags when that compiler is used
2 parents a2ce903 + 29ee70e commit 2519e1a

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)