diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-01-28 10:08:44 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-01-28 10:08:44 +0000 |
commit | ebfbdf962fb3e65e17ad8a0477558549e924dd22 (patch) | |
tree | ab049e20f1637ab091367922befeeafcc6d539d1 /gcc/rust/rust-session-manager.h | |
parent | 1fc2b540800d25af1c70e90439e8a9077c7d07f8 (diff) | |
download | gcc-ebfbdf962fb3e65e17ad8a0477558549e924dd22.zip gcc-ebfbdf962fb3e65e17ad8a0477558549e924dd22.tar.gz gcc-ebfbdf962fb3e65e17ad8a0477558549e924dd22.tar.bz2 |
Add -frust-cfg=value option for adding config options
This adds the initial support for config expansion on custom config values
it need support for parsing options such as feature=test with apropriate
error handling withing Session::handle_cfg_option(const std::string&).
This also applies the mark_for_strip checks only on AST::Functions and
will need applied to the rest of the crate in #872.
Addresses #889
Diffstat (limited to 'gcc/rust/rust-session-manager.h')
-rw-r--r-- | gcc/rust/rust-session-manager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/rust-session-manager.h b/gcc/rust/rust-session-manager.h index 90f7f4b..ea0523b 100644 --- a/gcc/rust/rust-session-manager.h +++ b/gcc/rust/rust-session-manager.h @@ -286,6 +286,9 @@ private: * macros, maybe build test harness in future, AST validation, maybe create * macro crate (if not rustdoc).*/ void expansion (AST::Crate &crate); + + // handle cfg_option + bool handle_cfg_option (const std::string &data); }; } // namespace Rust |