summaryrefslogtreecommitdiff
path: root/gold/gold-threads.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/gold-threads.cc')
-rw-r--r--gold/gold-threads.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/gold-threads.cc b/gold/gold-threads.cc
index 4ebbdd8496..e54d96c6ec 100644
--- a/gold/gold-threads.cc
+++ b/gold/gold-threads.cc
@@ -28,6 +28,7 @@
#include <pthread.h>
#endif
+#include "options.h"
#include "parameters.h"
#include "gold-threads.h"
@@ -144,7 +145,7 @@ Lock_impl_threads::release()
Lock::Lock()
{
- if (!parameters->threads())
+ if (!parameters->options().threads())
this->lock_ = new Lock_impl_nothreads;
else
{
@@ -258,7 +259,7 @@ Condvar_impl_threads::broadcast()
Condvar::Condvar(Lock& lock)
: lock_(lock)
{
- if (!parameters->threads())
+ if (!parameters->options().threads())
this->condvar_ = new Condvar_impl_nothreads;
else
{