X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildinfo.h;h=5528748fc55c82bfde6b14d09e3ca9bc3313e3bc;hb=7885ebe9620edd82f119eb290267c8e7eda014ed;hp=0af7374575e1a5979111ea12c999d99e8a288b45;hpb=d1a42f852e58918708b5b0cbd90219f6a95aa75b;p=builder.git diff --git a/source/buildinfo.h b/source/buildinfo.h index 0af7374..5528748 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -28,6 +28,7 @@ public: private: void incpath(const std::string &); void define(const std::string &, const std::string &); + void keep_symbol(const std::string &); void libmode_for_lib(const std::string &, LibraryMode); void libpath(const std::string &); void library(const std::string &); @@ -65,8 +66,8 @@ public: Tracked(T v): value(v), set(false) { } Tracked &operator=(const Tracked &v) { if(v.set) { value = v.value; set = true; } return *this; } - Tracked &operator=(T v) { value = v; set = true; return *this; } - operator T() const { return value; } + Tracked &operator=(const T &v) { value = v; set = true; return *this; } + operator const T &() const { return value; } }; typedef std::map DefineMap; @@ -83,6 +84,7 @@ public: WordList libs; Tracked libmode; LibModeMap libmodes; + WordList keep_symbols; StandardMap standards; Tracked threads; Tracked debug;