diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-09-08 09:34:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-09-08 09:34:09 +0200 |
commit | 12d8a2cfcfa10d6de746a919dc995da30850f4ee (patch) | |
tree | 3c7be4e9d7eabfb5b86249005c21dd815212d079 /libbuild2/module.cxx | |
parent | 37b5871bc8e544885c8a583ac7d242d14e8407c6 (diff) |
Get rid of warning in static build
Diffstat (limited to 'libbuild2/module.cxx')
-rw-r--r-- | libbuild2/module.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbuild2/module.cxx b/libbuild2/module.cxx index ff705eb..bb471a4 100644 --- a/libbuild2/module.cxx +++ b/libbuild2/module.cxx @@ -44,6 +44,7 @@ namespace build2 // Sorted array of bundled modules (excluding core modules bundled with // libbuild2; see below). // +#if !defined(BUILD2_BOOTSTRAP) && !defined(LIBBUILD2_STATIC_BUILD) static const char* bundled_modules[] = { "bash", "bin", @@ -62,6 +63,7 @@ namespace build2 bundled_modules + sizeof (bundled_modules) / sizeof (*bundled_modules), mod); } +#endif // Note: also used by ad hoc recipes thus not static. // |