Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1376)

Unified Diff: build/config/compiler/BUILD.gn

Issue 307993010: Add RLZ build file for GN build, fix Windows build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | rlz/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index eb33be96e6e438fa28808b6a73a717542d76fdd9..4520f3aef2056534e5cca154ca5d2a16d7c22420 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -43,10 +43,14 @@ config("compiler") {
cflags += [
"/Gy", # Enable function-level linking.
"/GS", # Enable buffer security checking.
- "/EHsc", # Assume C functions can't throw exceptions and don't catch
- # structured exceptions (only C++ ones).
"/FS", # Preserve previous PDB behavior.
]
+ if (is_component_build) {
+ cflags += [
+ "/EHsc", # Assume C functions can't throw exceptions and don't catch
+ # structured exceptions (only C++ ones).
+ ]
+ }
} else {
# Common GCC compiler flags setup.
# --------------------------------
« no previous file with comments | « BUILD.gn ('k') | rlz/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698