diff options
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index 04be98a3e39..fbd727199f1 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -1433,6 +1433,15 @@ General_options::finalize() } } +#ifndef HAVE_ZSTD + if (strcmp(this->compress_debug_sections(), "zstd") == 0) + { + gold_error(_("--compress-debug-sections=zstd: gold is not built with " + "zstd support")); + this->set_compress_debug_sections("none"); + } +#endif + // --rosegment-gap implies --rosegment. if (this->user_set_rosegment_gap()) this->set_rosegment(true); |