aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-09 08:19:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-09 08:19:33 +0200
commit23cbbc7f7cdcb7721d8d1cf4e70ae58184f8cc7e (patch)
tree182c9d097535f704f7899a1de81472b7b936fd03 /libbuild2/parser.cxx
parentb8cffb11a45add241e4b8420ba96e116efccfbd9 (diff)
Factor ad hoc C++ and Buildscript rules into separate files
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r--libbuild2/parser.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx
index f22f13a..e6a1c6a 100644
--- a/libbuild2/parser.cxx
+++ b/libbuild2/parser.cxx
@@ -20,6 +20,9 @@
#include <libbuild2/diagnostics.hxx>
#include <libbuild2/prerequisite.hxx>
+#include <libbuild2/rule-adhoc-cxx.hxx>
+#include <libbuild2/rule-adhoc-buildscript.hxx>
+
#include <libbuild2/config/utility.hxx> // lookup_config
using namespace std;
@@ -1134,7 +1137,7 @@ namespace build2
{
// Buildscript
//
- ar.reset (new adhoc_script_rule (loc, st.value.size ()));
+ ar.reset (new adhoc_buildscript_rule (loc, st.value.size ()));
}
else if (icasecmp (*lang, "c++") == 0)
{