Only generate debug info when in --debug mode (or asked).

This commit is contained in:
Ben Vanik
2013-12-22 09:50:31 -08:00
parent c92142ca02
commit de6dc92663
10 changed files with 43 additions and 7 deletions

23
src/alloy/alloy.cc Normal file
View File

@@ -0,0 +1,23 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#include <alloy/alloy.h>
#include <alloy/alloy-private.h>
using namespace alloy;
#if DEBUG
#define DEFAULT_DEBUG_FLAG true
#else
#define DEFAULT_DEBUG_FLAG false
#endif
DEFINE_bool(debug, DEFAULT_DEBUG_FLAG,
"Allow debugging and retain debug information.");