diff options
Diffstat (limited to 'gold/fileread.cc')
-rw-r--r-- | gold/fileread.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gold/fileread.cc b/gold/fileread.cc index 36eee6c..13442ff 100644 --- a/gold/fileread.cc +++ b/gold/fileread.cc @@ -738,6 +738,16 @@ Input_file::name() const return this->input_argument_->name(); } +// Return whether this file is in a system directory. + +bool +Input_file::is_in_system_directory() const +{ + if (this->is_in_sysroot()) + return true; + return parameters->options().is_in_system_directory(this->filename()); +} + // Return whether we are only reading symbols. bool |