]>
Commit | Line | Data |
---|---|---|
30dc701f AM |
1 | --- chromium-browser-6.0.423.0~svn20100601r48614.orig/debian/patches/disable_dlog_and_dcheck_in_release_builds.patch |
2 | +++ chromium-browser-6.0.423.0~svn20100601r48614/debian/patches/disable_dlog_and_dcheck_in_release_builds.patch | |
3 | @@ -0,0 +1,27 @@ | |
4 | +--- | |
5 | + base/logging.h | 2 +- | |
6 | + 1 file changed, 1 insertion(+), 1 deletion(-) | |
7 | + | |
8 | +Index: src/base/logging.h | |
9 | +=================================================================== | |
10 | +--- src.orig/base/logging.h | |
11 | ++++ src/base/logging.h | |
12 | +@@ -382,17 +382,17 @@ | |
13 | + // #ifndef NDEBUG | |
14 | + // foo.CheckThatFoo(); | |
15 | + // #endif | |
16 | + | |
17 | + // http://crbug.com/16512 is open for a real fix for this. For now, Windows | |
18 | + // uses OFFICIAL_BUILD and other platforms use the branding flag when NDEBUG is | |
19 | + // defined. | |
20 | + #if ( defined(OS_WIN) && defined(OFFICIAL_BUILD)) || \ | |
21 | +- (!defined(OS_WIN) && defined(NDEBUG) && defined(GOOGLE_CHROME_BUILD)) | |
22 | ++ (!defined(OS_WIN) && defined(NDEBUG)) | |
23 | + // In order to have optimized code for official builds, remove DLOGs and | |
24 | + // DCHECKs. | |
25 | + #define OMIT_DLOG_AND_DCHECK 1 | |
26 | + #endif | |
27 | + | |
28 | + #ifdef OMIT_DLOG_AND_DCHECK | |
29 | + | |
30 | + #define DLOG(severity) \ |