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

Side by Side Diff: tools/gn/function_toolchain.cc

Issue 1361173004: [GN]: Add asmflags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 7
8 #include "tools/gn/err.h" 8 #include "tools/gn/err.h"
9 #include "tools/gn/functions.h" 9 #include "tools/gn/functions.h"
10 #include "tools/gn/parse_tree.h" 10 #include "tools/gn/parse_tree.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 " The short name of the current target with no path information,\n" 611 " The short name of the current target with no path information,\n"
612 " or the value of the \"output_name\" variable if one is specified\n" 612 " or the value of the \"output_name\" variable if one is specified\n"
613 " in the target. This will include the \"output_prefix\" if any.\n" 613 " in the target. This will include the \"output_prefix\" if any.\n"
614 " Example: \"libfoo\" for the target named \"foo\" and an\n" 614 " Example: \"libfoo\" for the target named \"foo\" and an\n"
615 " output prefix for the linker tool of \"lib\".\n" 615 " output prefix for the linker tool of \"lib\".\n"
616 "\n" 616 "\n"
617 " Compiler tools have the notion of a single input and a single output,\n" 617 " Compiler tools have the notion of a single input and a single output,\n"
618 " along with a set of compiler-specific flags. The following expansions\n" 618 " along with a set of compiler-specific flags. The following expansions\n"
619 " are available:\n" 619 " are available:\n"
620 "\n" 620 "\n"
621 " {{asmflags}}\n"
621 " {{cflags}}\n" 622 " {{cflags}}\n"
622 " {{cflags_c}}\n" 623 " {{cflags_c}}\n"
623 " {{cflags_cc}}\n" 624 " {{cflags_cc}}\n"
624 " {{cflags_objc}}\n" 625 " {{cflags_objc}}\n"
625 " {{cflags_objcc}}\n" 626 " {{cflags_objcc}}\n"
626 " {{defines}}\n" 627 " {{defines}}\n"
627 " {{include_dirs}}\n" 628 " {{include_dirs}}\n"
628 " Strings correspond that to the processed flags/defines/include\n" 629 " Strings correspond that to the processed flags/defines/include\n"
629 " directories specified for the target.\n" 630 " directories specified for the target.\n"
630 " Example: \"--enable-foo --enable-bar\"\n" 631 " Example: \"--enable-foo --enable-bar\"\n"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 return Value(); 955 return Value();
955 956
956 Scope::KeyValueMap values; 957 Scope::KeyValueMap values;
957 block_scope.GetCurrentScopeValues(&values); 958 block_scope.GetCurrentScopeValues(&values);
958 toolchain->args() = values; 959 toolchain->args() = values;
959 960
960 return Value(); 961 return Value();
961 } 962 }
962 963
963 } // namespace functions 964 } // namespace functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698