aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-22 13:24:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-22 13:24:59 +0200
commit9a00b8ccfef1d13088be2d76fefcb320c269732a (patch)
tree40a7efc0bc0116cbbf035310b9341d83a0793a07 /build2/cc/compile.hxx
parente52f8358ce533742a0357fabebd96fb7f5b2609a (diff)
Add extra support for symbol exporting in modularized projects
Since modules don't see each other's macros, we can use a single, keyword- like macro for dll-exporting that is managed by the build system (so no need for an "export" header). For example: cxx.features.symexport = true export __symexport void f ();
Diffstat (limited to 'build2/cc/compile.hxx')
-rw-r--r--build2/cc/compile.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/cc/compile.hxx b/build2/cc/compile.hxx
index be4a2e2..ed9c18d 100644
--- a/build2/cc/compile.hxx
+++ b/build2/cc/compile.hxx
@@ -123,6 +123,9 @@ namespace build2
const char*
langopt (const match_data&) const;
+ void
+ append_symexport_options (cstrings&, const target&) const;
+
private:
const string rule_id;
};