summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-30 22:18:10 +0100
committerCarl Hetherington <cth@carlh.net>2025-11-02 00:54:38 +0100
commite25f27ec38f4aadb2beea43b33b3209e4c528fd0 (patch)
tree432a656e981a634ea65e8f5436169426336bf5a1
parenteceb386bb2735b25204c06959227926ddddccc29 (diff)
Fix working directory for 'local' target.
-rwxr-xr-xcdist3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdist b/cdist
index 08a2e4a..51195b3 100755
--- a/cdist
+++ b/cdist
@@ -901,6 +901,7 @@ class LocalTarget(Target):
# distro will be there.
self.distro = None
self.detail = None
+ self.version = None
self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/bin/pkgconfig' % (self.directory, self.directory))
self.append_with_colon('LD_LIBRARY_PATH', '%s/lib' % self.directory)
self.set('CXXFLAGS', '-I%s/include' % self.directory)
@@ -972,7 +973,7 @@ def target_factory(args):
elif s == 'appimage-old':
target = AppImageTarget(args.work, ubuntu_version='14.04')
elif s == 'local':
- target = LinuxLocalTarget(args.work, args.dependencies_only, cpu='x86')
+ target = LocalTarget(directory=args.work, dependencies_only=args.dependencies_only, platform="linux")
if target is None:
raise Error("Bad target `%s'" % s)