diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-30 22:18:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-02 00:54:38 +0100 |
| commit | e25f27ec38f4aadb2beea43b33b3209e4c528fd0 (patch) | |
| tree | 432a656e981a634ea65e8f5436169426336bf5a1 | |
| parent | eceb386bb2735b25204c06959227926ddddccc29 (diff) | |
Fix working directory for 'local' target.
| -rwxr-xr-x | cdist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
