[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:
Daco Harkes 2023-09-08 15:49:28 +00:00 committed by Commit Queue
parent b8a89b66a6
commit 01b1291d54

View file

@ -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)