mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
[tool] generate_idefiles sanitizer argument
Change-Id: I6f93fdbce8f4cef6c606e8b43ae9e1e888772292 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/325000 Auto-Submit: Daco Harkes <dacoharkes@google.com> Commit-Queue: Tess Strickland <sstrickl@google.com> Reviewed-by: Tess Strickland <sstrickl@google.com>
This commit is contained in:
parent
b8a89b66a6
commit
01b1291d54
1 changed files with 8 additions and 1 deletions
|
@ -52,7 +52,8 @@ def GenerateCompileCommands(options):
|
|||
out_folder = utils.GetBuildRoot(HOST_OS,
|
||||
mode="debug",
|
||||
arch=options.arch,
|
||||
target_os=options.os)
|
||||
target_os=options.os,
|
||||
sanitizer=options.sanitizer)
|
||||
|
||||
if not os.path.isdir(out_folder):
|
||||
return 1
|
||||
|
@ -139,6 +140,12 @@ def main(argv):
|
|||
help="Target operating system for runtime sources.",
|
||||
default=HOST_OS)
|
||||
|
||||
parser.add_argument('--sanitizer',
|
||||
type=str,
|
||||
help='Build variants (comma-separated).',
|
||||
metavar='[none,asan,lsan,msan,tsan,ubsan]',
|
||||
default='none')
|
||||
|
||||
options = parser.parse_args(argv[1:])
|
||||
|
||||
return GenerateIdeFiles(options)
|
||||
|
|
Loading…
Reference in a new issue