summaryrefslogtreecommitdiff
path: root/odb/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-10-26 12:09:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-10-26 12:09:23 +0200
commit9d0db572d5b36e97715e67465f7485c056f3f2d3 (patch)
tree17ac5ead56e3dbef54dca453318197e6ed438809 /odb/buildfile
parentc5c9f8c2ce8b1486d5549c9d75729c89769ca19c (diff)
Fix few issues in build2 metadata
Diffstat (limited to 'odb/buildfile')
-rw-r--r--odb/buildfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/odb/buildfile b/odb/buildfile
index 8e931ad..2625e0d 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -67,12 +67,16 @@ exe{odb}: plugin{odb}: include = adhoc
# Target metadata, see also --build2-metadata in odb.cxx.
#
+# While ODB itself doesn't use any environment variables, it uses GCC
+# underneath which does (see "Environment Variables Affecting GCC").
+#
exe{odb}:
{
export.metadata = 1 odb
odb.name = [string] odb
- odb.version = $version
- odb.checksum = $version
+ odb.version = [string] $version
+ odb.checksum = [string] $version
+ odb.environment = [strings] CPATH CPLUS_INCLUDE_PATH GCC_EXEC_PREFIX COMPILER_PATH
}
plugin{odb}: libus{odb}