mirror of
https://github.com/rui314/mold.git
synced 2026-11-08 17:48:41 -10:00
Preparation to support Apple ld64's -w option
This commit is contained in:
1 parent
d2970e096d
commit
6d2dbd42a6
2 files changed
+6
-3
No files matched your search
+4
-2
@@ -159,7 +159,7 @@ private:
|
||||
template <typename Context>
|
||||
class Error {
|
||||
public:
|
||||
Error(Context &ctx) : out(ctx, std::cerr) {
|
||||
Error(Context &ctx) : out(ctx, std::cerr), suppress(ctx.arg.suppress_warnings) {
|
||||
if (ctx.arg.noinhibit_exec) {
|
||||
out << add_color(ctx, "warning");
|
||||
} else {
|
||||
@@ -169,12 +169,14 @@ public:
|
||||
}
|
||||
|
||||
template <class T> Error &operator<<(T &&val) {
|
||||
out << std::forward<T>(val);
|
||||
if (!suppress)
|
||||
out << std::forward<T>(val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
SyncOut<Context> out;
|
||||
bool suppress;
|
||||
};
|
||||
|
||||
template <typename Context>
|
||||
|
||||
+2
-1
@@ -1623,11 +1623,11 @@ struct Context {
|
||||
bool Bsymbolic = false;
|
||||
bool Bsymbolic_functions = false;
|
||||
bool allow_multiple_definition = false;
|
||||
bool apply_dynamic_relocs = true;
|
||||
bool color_diagnostics = false;
|
||||
bool default_symver = false;
|
||||
bool demangle = true;
|
||||
bool discard_all = false;
|
||||
bool apply_dynamic_relocs = true;
|
||||
bool discard_locals = false;
|
||||
bool eh_frame_hdr = true;
|
||||
bool emit_relocs = false;
|
||||
@@ -1667,6 +1667,7 @@ struct Context {
|
||||
bool stats = false;
|
||||
bool strip_all = false;
|
||||
bool strip_debug = false;
|
||||
bool suppress_warnings = false;
|
||||
bool trace = false;
|
||||
bool undefined_version = false;
|
||||
bool warn_common = false;
|
||||
|
||||
Reference in new issue
Block a user