Skip to content

Commit

Permalink
build: remove some cxx flags
Browse files Browse the repository at this point in the history
  • Loading branch information
RimuruChan committed Mar 16, 2023
1 parent 5e64364 commit f04f91d
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
add_rules("mode.debug", "mode.release")

if is_mode("debug") then
set_runtimes("MDd")
else
set_runtimes("MD")
end

target("Demangler")
set_kind("static")
set_languages("c++17")
add_headerfiles("include/(**.h)", "include/(**.def)")
add_includedirs("./include")
add_cxxflags("/UTF-8", "/GL", "/permissive-")
if is_mode("debug") then
add_defines("DEBUG")
add_cxxflags("/MDd")
add_ldflags("/DEBUG")
else
add_defines("NDEBUG")
add_cxxflags("/MD")
add_ldflags("/OPT:REF", "/OPT:ICF")
end
add_ldflags("/LTCG")
add_cxxflags("/UTF-8", "/permissive-")
add_files("src/**.cpp")

0 comments on commit f04f91d

Please sign in to comment.