From 01290a83c57562d2c9006a994314b969ed2485b5 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 30 Dec 2017 22:07:05 -0800 Subject: [PATCH] [waf] Fix --bundled-clang=5.0.1 on Mac OS X (#207) --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index e6900bf2..15dd4e7b 100644 --- a/wscript +++ b/wscript @@ -200,6 +200,12 @@ def configure(ctx): print('Checking for clang') download_and_extract(CLANG_DIRECTORY, CLANG_TARBALL_URL, CLANG_TARBALL_EXT) + + # TODO Remove after migrating to a clang release newer than 5.0.1 + # For 5.0.1 Mac OS X, the directory and the tarball have different name + if ctx.options.bundled_clang == '5.0.1' and sys.platform == 'darwin': + CLANG_TARBALL_NAME = 'clang+llvm-5.0.1-final-x86_64-apple-darwin' + bundled_clang_dir = os.path.join(out, ctx.options.variant, 'lib', CLANG_TARBALL_NAME) try: os.makedirs(os.path.dirname(bundled_clang_dir))