From a7362cf29a76ef679c9a1ce74715a5d087851b91 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Sep 2015 13:08:53 +0200 Subject: Add support for unnamed projects Sometimes (e.g., in bpkg configuration) we don't have a project name. In fact, it is not really a project; it can never be referenced in an import directive. So we now have a notion of an unnamed project. Such a project should still have the 'project' variable set first thing in bootstrap.build but its value should be empty. Note that we can still amalgamate such projects just liked named ones. --- tests/amalgam/unnamed/sub/build/bootstrap.build | 2 ++ tests/amalgam/unnamed/sub/buildfile | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 tests/amalgam/unnamed/sub/build/bootstrap.build create mode 100644 tests/amalgam/unnamed/sub/buildfile (limited to 'tests/amalgam/unnamed/sub') diff --git a/tests/amalgam/unnamed/sub/build/bootstrap.build b/tests/amalgam/unnamed/sub/build/bootstrap.build new file mode 100644 index 0000000..ce3735a --- /dev/null +++ b/tests/amalgam/unnamed/sub/build/bootstrap.build @@ -0,0 +1,2 @@ +project = +using config diff --git a/tests/amalgam/unnamed/sub/buildfile b/tests/amalgam/unnamed/sub/buildfile new file mode 100644 index 0000000..8717375 --- /dev/null +++ b/tests/amalgam/unnamed/sub/buildfile @@ -0,0 +1,2 @@ +./: +print "'$project'" -- cgit v1.1