From a3fec9f0b3cb3e44c7613159bb2bbfe1c134aff3 Mon Sep 17 00:00:00 2001 From: Waf Project Date: Sun, 21 Apr 2024 06:59:27 +0200 Subject: [PATCH] Improve ldscript example --- playground/ldscript/wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/ldscript/wscript b/playground/ldscript/wscript index 4221db2d..3d6996b2 100644 --- a/playground/ldscript/wscript +++ b/playground/ldscript/wscript @@ -20,7 +20,7 @@ def build(bld): linkflags = ['-nostdlib'], ) -from waflib import Utils +from waflib import Errors from waflib.TaskGen import after_method, feature @after_method('propagate_uselib_vars') @@ -31,7 +31,7 @@ def process_ldscript(self): node = self.path.find_resource(self.ldscript) if not node: - raise Utils.WafError('could not find %r' % self.ldscript) + raise Errors.WafError('could not find %r' % self.ldscript) self.link_task.env.append_value('LINKFLAGS', '-Wl,-T,%s' % node.abspath()) self.link_task.dep_nodes.append(node)