From bd74e19f10d7002530ba271cb95dc7166bcc0d55 Mon Sep 17 00:00:00 2001 From: Ivan Donchevskii Date: Thu, 4 Apr 2019 13:43:29 +0200 Subject: Libclang: Cross-compile for x86 platforms Change-Id: Idf7310beaf2c6728f70e871504e791e03577c43d Reviewed-by: Eike Ziller --- packaging-tools/build_clang.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging-tools/build_clang.py b/packaging-tools/build_clang.py index d6bf7378d..8806c8ff3 100644 --- a/packaging-tools/build_clang.py +++ b/packaging-tools/build_clang.py @@ -105,10 +105,10 @@ def msvc_environment(bitness): msvc_ver = msvc_version() if msvc_ver == '14.1' or msvc_ver == '14.2': vcvarsall = os.path.join(program_files, 'Microsoft Visual Studio', msvc_year(), 'Professional', 'VC', 'Auxiliary', 'Build', 'vcvarsall.bat') - arg = 'x64' if bitness == 64 else 'x86' + arg = 'x64' if bitness == 64 else 'x64_x86' else: vcvarsall = os.path.join(program_files, 'Microsoft Visual Studio ' + msvc_ver, 'VC', 'vcvarsall.bat') - arg = 'amd64' if bitness == 64 else 'x86' + arg = 'amd64' if bitness == 64 else 'x64_x86' return environmentfrombatchfile.get(vcvarsall, arguments=arg) def paths_with_sh_exe_removed(path_value): -- cgit v1.2.3