From c8d9235115f5c0c3b20bdb0cf59b05761cb3d3de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Nov 2023 08:22:49 +0200 Subject: Add support for `import std` in Clang 17 or later with libc++ --- libbuild2/buildfile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libbuild2/buildfile') diff --git a/libbuild2/buildfile b/libbuild2/buildfile index 6d7c597..5ef0006 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -222,6 +222,17 @@ if ($install.root != [null]) $directory($install.resolve($install.buildfile)), '\\', '\\\\')\" #\ + # Data directory or src_root if not installed. + # + # Note: normalized in both cases. + # + {obja objs}{utility-installed}: cxx.poptions += \ + -DBUILD2_INSTALL_DATA=\"$regex.replace(\ + $install.resolve($install.data), '\\', '\\\\')\" + + {obja objs}{utility-uninstalled}: cxx.poptions += \ + -DBUILD2_INSTALL_DATA=\"$regex.replace(\ + $src_root, '\\', '\\\\')\" } if ($cxx.target.class != 'windows') -- cgit v1.1