From 615e05a8678b814f7d3ebd06003e9150afc69905 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 31 Jan 2022 10:33:04 -0800 Subject: [PATCH] Windows: shuffle files in the MSI packaging This shuffles the swift-driver from devtools to toolchain, replacing the driver from the swift repository at packaging time. This is required to be this way to support bootstrapping and more importantly, to reduce the overall build times for the toolchain (OSS builders are perilously close to the time limit, and would fail to build with swift-driver in the same build). The toolchain MSI is meant to contain everything that is needed for building a program manually with the compiler. This should allow us to migrate to swift-driver as the official Windows driver. --- platforms/Windows/devtools.wxs | 81 ----------------------------- platforms/Windows/toolchain.wixproj | 2 +- platforms/Windows/toolchain.wxs | 70 +++++++++++++++++++++++-- 3 files changed, 68 insertions(+), 85 deletions(-) diff --git a/platforms/Windows/devtools.wxs b/platforms/Windows/devtools.wxs index ad912f71..3fd0a353 100644 --- a/platforms/Windows/devtools.wxs +++ b/platforms/Windows/devtools.wxs @@ -67,23 +67,6 @@ - - - - - - - - - - - - - - - - - @@ -113,19 +96,6 @@ - - - - - - - - - - - - - @@ -152,19 +122,6 @@ - - - - - - - - - - - - - @@ -230,34 +187,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -277,34 +206,24 @@ - - - - - INSTALL_DEBUGINFO - - - - - diff --git a/platforms/Windows/toolchain.wixproj b/platforms/Windows/toolchain.wixproj index bed129ac..87ae8de8 100644 --- a/platforms/Windows/toolchain.wixproj +++ b/platforms/Windows/toolchain.wixproj @@ -22,7 +22,7 @@ - ProductVersion=$(ProductVersion);TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;$(INCLUDE_DEBUG_INFO) + ProductVersion=$(ProductVersion);DEVTOOLS_ROOT=$(DEVTOOLS_ROOT);TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;$(INCLUDE_DEBUG_INFO) false true true diff --git a/platforms/Windows/toolchain.wxs b/platforms/Windows/toolchain.wxs index 1f9fbc2d..a103b3e8 100644 --- a/platforms/Windows/toolchain.wxs +++ b/platforms/Windows/toolchain.wxs @@ -20,6 +20,11 @@ + + + + + @@ -170,12 +175,11 @@ - + - @@ -184,6 +188,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -229,8 +266,8 @@ + - @@ -239,6 +276,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +