projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build error in gdb/rocm-tdep.c
[deliverable/binutils-gdb.git]
/
gold
/
options.cc
diff --git
a/gold/options.cc
b/gold/options.cc
index 21b95e38d8cff45951c547cfa568d84eabddeb9f..94867b361a2479dc4bfd752f7e20d1d50dd041ec 100644
(file)
--- a/
gold/options.cc
+++ b/
gold/options.cc
@@
-1,6
+1,6
@@
// options.c -- handle command line options for gold
// options.c -- handle command line options for gold
-// Copyright (C) 2006-20
17
Free Software Foundation, Inc.
+// Copyright (C) 2006-20
20
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-448,7
+448,6
@@
General_options::parse_library(const char*, const char* arg,
cmdline->inputs().add_file(file);
}
cmdline->inputs().add_file(file);
}
-#ifdef ENABLE_PLUGINS
void
General_options::parse_plugin(const char*, const char* arg,
Command_line*)
void
General_options::parse_plugin(const char*, const char* arg,
Command_line*)
@@
-464,7
+463,6
@@
General_options::parse_plugin_opt(const char*, const char* arg,
{
this->add_plugin_option(arg);
}
{
this->add_plugin_option(arg);
}
-#endif // ENABLE_PLUGINS
void
General_options::parse_R(const char* option, const char* arg,
void
General_options::parse_R(const char* option, const char* arg,
@@
-1208,6
+1206,13
@@
General_options::finalize()
program_name);
#endif
program_name);
#endif
+#ifndef ENABLE_PLUGINS
+ if (this->has_plugins())
+ gold_fatal(_("cannot use --plugin: "
+ "%s was compiled without plugin support"),
+ program_name);
+#endif
+
std::string libpath;
if (this->user_set_Y())
{
std::string libpath;
if (this->user_set_Y())
{
This page took
0.025364 seconds
and
4
git commands to generate.