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

Unified Diff: tools/gn/substitution_type.cc

Issue 1361173004: [GN]: Add asmflags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Brett’s comments Created 5 years, 3 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 | « tools/gn/substitution_type.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/substitution_type.cc
diff --git a/tools/gn/substitution_type.cc b/tools/gn/substitution_type.cc
index 2713ee2daf4abdeabc13be42afb2bb5f37b3a642..f67df262a21e80c6e39a41cdb3ae3f48c22a01f3 100644
--- a/tools/gn/substitution_type.cc
+++ b/tools/gn/substitution_type.cc
@@ -28,6 +28,7 @@ const char* kSubstitutionNames[SUBSTITUTION_NUM_TYPES] = {
"{{target_out_dir}}", // SUBSTITUTION_TARGET_OUT_DIR
"{{target_output_name}}", // SUBSTITUTION_TARGET_OUTPUT_NAME
+ "{{asmflags}}", // SUBSTITUTION_ASMFLAGS
"{{cflags}}", // SUBSTITUTION_CFLAGS
"{{cflags_c}}", // SUBSTITUTION_CFLAGS_C
"{{cflags_cc}}", // SUBSTITUTION_CFLAGS_CC
@@ -64,6 +65,7 @@ const char* kSubstitutionNinjaNames[SUBSTITUTION_NUM_TYPES] = {
"target_out_dir", // SUBSTITUTION_TARGET_OUT_DIR
"target_output_name", // SUBSTITUTION_TARGET_OUTPUT_NAME
+ "asmflags", // SUBSTITUTION_ASMFLAGS
"cflags", // SUBSTITUTION_CFLAGS
"cflags_c", // SUBSTITUTION_CFLAGS_C
"cflags_cc", // SUBSTITUTION_CFLAGS_CC
@@ -133,6 +135,7 @@ bool IsValidCompilerSubstitution(SubstitutionType type) {
return IsValidToolSubstutition(type) ||
IsValidSourceSubstitution(type) ||
type == SUBSTITUTION_SOURCE ||
+ type == SUBSTITUTION_ASMFLAGS ||
type == SUBSTITUTION_CFLAGS ||
type == SUBSTITUTION_CFLAGS_C ||
type == SUBSTITUTION_CFLAGS_CC ||
« no previous file with comments | « tools/gn/substitution_type.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698