Skip to content

Commit

Permalink
nazaraengine: Add /Zc:preprocessor flag
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored Dec 2, 2024
1 parent 6103abf commit 743ac12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/n/nazaraengine/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ package("nazaraengine")
configs.mode = "release"
end
import("package.tools.xmake").install(package, configs)

if package:has_tool("cxx", "cl") then
package:add("cxxflags", "/Zc:preprocessor") -- /Zc:preprocessor is required because Nazara uses __VA_OPT__ (C++20)
end
end)

on_test(function (package)
Expand Down

0 comments on commit 743ac12

Please sign in to comment.