Skip to content

Commit 87b51fc

Browse files
authored
Merge pull request #25114 from akyrtzi/build-parserlib-link-fix
2 parents b75f9ee + df721bd commit 87b51fc

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/Basic/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,9 @@ add_swift_host_library(swiftBasic STATIC
109109
target_include_directories(swiftBasic PRIVATE
110110
${UUID_INCLUDE})
111111

112-
if(NOT SWIFT_BUILD_ONLY_SYNTAXPARSERLIB)
113-
target_link_libraries(swiftBasic PRIVATE
114-
swiftDemangling
115-
${UUID_LIBRARIES})
116-
endif()
112+
target_link_libraries(swiftBasic PRIVATE
113+
swiftDemangling
114+
${UUID_LIBRARIES})
117115

118116
message(STATUS "Swift version: ${SWIFT_VERSION}")
119117
message(STATUS "Swift vendor: ${SWIFT_VENDOR}")

utils/build-parser-lib

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def main():
234234
option('--install-symroot', store_path,
235235
help='the path to install debug symbols into')
236236
option('--install-destdir', store_path,
237-
help='the path to use as the filesystem root for the installation')
237+
help='the path to use as the filesystem root for the installation (default = \'$(build_dir)/install\')')
238238
option('--install-prefix', store,
239239
default = default_install_prefix,
240240
help='the install prefix to use (default = %s)' % default_install_prefix)
@@ -247,6 +247,9 @@ def main():
247247
parser = optbuilder.build()
248248
args = parser.parse_args()
249249

250+
if not args.install_destdir:
251+
args.install_destdir = os.path.join(args.build_dir, 'install')
252+
250253
if isDarwin:
251254
architectures = args.architectures.split(" ")
252255
architectures = [arch for arch in architectures if arch != platform.machine() and arch != ""]

0 commit comments

Comments
 (0)