]> git.tdb.fi Git - builder.git/blobdiff - source/buildinfo.h
More sophisticated handling of language standards
[builder.git] / source / buildinfo.h
index fa8ae62d39606527509d7c9a8b8dd18d77db68e7..c0584002233512392849dd7a6097de40bc02f1a6 100644 (file)
@@ -51,6 +51,17 @@ public:
                CHAINED      //< Include only compilation options
        };
 
+       struct LanguageStandard
+       {
+               std::string type;
+               unsigned year;
+
+               LanguageStandard(): year(0) { }
+               LanguageStandard(const std::string &);
+
+               std::string str() const;
+       };
+
        /**
        A wrapper which tracks the set status of the wrapped variable.  A default
        value may be provided in initialization without causing it to be treated as
@@ -82,7 +93,7 @@ public:
        typedef std::list<Msp::FS::Path> PathList;
        typedef std::list<std::string> WordList;
        typedef std::map<std::string, LibraryMode> LibModeMap;
-       typedef std::map<std::string, std::string> StandardMap;
+       typedef std::map<std::string, LanguageStandard> StandardMap;
 
        Tracked<Msp::FS::Path> sysroot;
        DefineMap defines;