Skip to content
Snippets Groups Projects
Commit d594744d authored by brad kittenbrink's avatar brad kittenbrink
Browse files

Turned inlining on in windows builds (RelWithDebInfo and Release).

This reduces the number of symbols in the viewer binary by about 30%.
Also, fixed test errors revealed by inlining being enabled.
parent 65997a1f
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,10 @@ if (WINDOWS)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Od /Zi /MDd /MP"
CACHE STRING "C++ compiler debug options" FORCE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
"${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MD /MP"
"${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /Od /Zi /MD /MP /Ob2"
CACHE STRING "C++ compiler release-with-debug options" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE
"${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MD /MP"
"${CMAKE_CXX_FLAGS_RELEASE} ${LL_CXX_FLAGS} /O2 /Zi /MD /MP /Ob2"
CACHE STRING "C++ compiler release options" FORCE)
set(CMAKE_CXX_STANDARD_LIBRARIES "")
......
......@@ -72,16 +72,13 @@ static void substitute_string(std::string &input, const std::string &search, con
}
}
class LLAgent
{
public:
LLAgent() {}
~LLAgent() {}
#ifdef __GNUC__
__attribute__ ((noinline))
#endif
bool isGodlike() const { return FALSE; }
};
#include "../llagent.h"
LLAgent::LLAgent() : mAgentAccess(gSavedSettings) { }
LLAgent::~LLAgent() { }
bool LLAgent::isGodlike() const { return FALSE; }
LLAgentAccess::LLAgentAccess(LLControlGroup& settings) : mSavedSettings(settings) { }
LLUIColor::LLUIColor() {}
LLAgent gAgent;
std::string LLWeb::expandURLSubstitutions(const std::string &url,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment