From facd9d964889e4c14dc04cf8ad1ae5e396d5ea55 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Fri, 20 Jun 2014 14:55:51 +0400 Subject: [PATCH] Add clang toolchain --- bin/build.py | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/bin/build.py b/bin/build.py index 6701f028..beded079 100755 --- a/bin/build.py +++ b/bin/build.py @@ -24,7 +24,12 @@ 'gcc48', 'gcc', 'vs2013x64', - 'vs2013' + 'vs2013', + 'analyze', + 'sanitize_address', + 'sanitize_leak', + 'sanitize_memory', + 'sanitize_thread', ], help="CMake generator/toolchain", ) @@ -62,17 +67,16 @@ generator = '' """Toolchain name""" -polly_toolchain = 'default' -if args.toolchain == 'libcxx': - polly_toolchain = 'libcxx' -elif args.toolchain == 'xcode': - polly_toolchain = 'xcode' -elif args.toolchain == 'clang_libstdcxx': - polly_toolchain = 'clang_libstdcxx' -elif args.toolchain == 'gcc48': - polly_toolchain = 'gcc48' -elif args.toolchain == 'gcc': - polly_toolchain = 'gcc' +polly_toolchain = '' +if args.toolchain: + polly_toolchain = args.toolchain +else: + polly_toolchain = 'default' + +if args.toolchain == 'vs2013x64': + polly_toolchain = 'default' +elif args.toolchain == 'vs2013': + polly_toolchain = 'default' """Build directory tag""" if args.config: