[Action] 构建命令修改
This commit is contained in:
@@ -366,6 +366,7 @@ namespace Fig
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(false);
|
assert(false);
|
||||||
|
return Function(); // ignore warning
|
||||||
}
|
}
|
||||||
|
|
||||||
const Function &getImplementedMethod(const TypeInfo &structType,
|
const Function &getImplementedMethod(const TypeInfo &structType,
|
||||||
@@ -385,6 +386,7 @@ namespace Fig
|
|||||||
return parent->getImplementedMethod(structType, functionName);
|
return parent->getImplementedMethod(structType, functionName);
|
||||||
|
|
||||||
assert(false); // not found
|
assert(false); // not found
|
||||||
|
throw ""; // ignore warning
|
||||||
}
|
}
|
||||||
|
|
||||||
void printStackTrace(std::ostream &os = std::cerr, int indent = 0) const
|
void printStackTrace(std::ostream &os = std::cerr, int indent = 0) const
|
||||||
|
|||||||
@@ -984,6 +984,7 @@ namespace Fig
|
|||||||
}
|
}
|
||||||
|
|
||||||
default: assert(false);
|
default: assert(false);
|
||||||
|
return Object::getNullInstance(); // ignore warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StatementResult Evaluator::evalBlockStatement(Ast::BlockStatement block, ContextPtr ctx)
|
StatementResult Evaluator::evalBlockStatement(Ast::BlockStatement block, ContextPtr ctx)
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ namespace Fig
|
|||||||
return std::hash<TypeInfo>{}(si.parentType) + std::hash<uint64_t>{}(reinterpret_cast<uint64_t>(std::addressof(*si.localContext)));
|
return std::hash<TypeInfo>{}(si.parentType) + std::hash<uint64_t>{}(reinterpret_cast<uint64_t>(std::addressof(*si.localContext)));
|
||||||
}
|
}
|
||||||
assert(false);
|
assert(false);
|
||||||
|
throw ""; // ignore warning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
17
xmake.lua
17
xmake.lua
@@ -8,17 +8,20 @@ target("Fig")
|
|||||||
set_languages("c++23")
|
set_languages("c++23")
|
||||||
|
|
||||||
if is_plat("linux") then
|
if is_plat("linux") then
|
||||||
|
-- Linux: clang + libc++
|
||||||
set_toolchains("clang")
|
set_toolchains("clang")
|
||||||
add_cxxflags("-stdlib=libc++")
|
add_cxxflags("-stdlib=libc++")
|
||||||
add_ldflags("-stdlib=libc++")
|
add_ldflags("-stdlib=libc++")
|
||||||
elseif is_plat("windows") then
|
|
||||||
set_toolchains("mingw")
|
|
||||||
add_cxxflags("-stdlib=libc++")
|
|
||||||
add_ldflags("-static")
|
|
||||||
elseif is_plat("mingw") then
|
elseif is_plat("mingw") then
|
||||||
set_toolchains("mingw")
|
-- 1. CI cross (Linux -> Windows)
|
||||||
add_cxxflags("-static")
|
-- 2. local dev (Windows + llvm-mingw)
|
||||||
add_ldflags("-static")
|
set_toolchains("clang")
|
||||||
|
-- static lib
|
||||||
|
add_cxxflags("-target x86_64-w64-mingw32", "-static")
|
||||||
|
|
||||||
|
-- add_ldflags("-target x86_64-w64-mingw32", "-static")
|
||||||
|
-- add_cxxflags("-stdlib=libc++")
|
||||||
|
-- add_ldflags("-stdlib=libc++")
|
||||||
end
|
end
|
||||||
|
|
||||||
add_ldflags("-Wl,--stack,268435456")
|
add_ldflags("-Wl,--stack,268435456")
|
||||||
|
|||||||
Reference in New Issue
Block a user