@@ -234,7 +234,7 @@ class Builder(object):
234
234
"-DSWIFT_BUILD_DYNAMIC_SDK_OVERLAY=FALSE" ,
235
235
"-DSWIFT_BUILD_STATIC_SDK_OVERLAY=FALSE" ,
236
236
]
237
- cmake_args += ["-DLLVM_ENABLE_LIBXML2=FALSE" ]
237
+ cmake_args += ["-DLLVM_ENABLE_LIBXML2=FALSE" , "-DLLVM_ENABLE_LIBEDIT=FALSE" ]
238
238
# We are not using cmark but initialize the CMARK variables to something so
239
239
# that configure can succeed.
240
240
cmake_args += [
@@ -246,7 +246,7 @@ class Builder(object):
246
246
"-DCLANG_INCLUDE_TESTS=FALSE" ,
247
247
"-DSWIFT_INCLUDE_TESTS=FALSE" ,
248
248
]
249
- cmake_args += [os .path .join (SWIFT_SOURCE_ROOT , "llvm" )]
249
+ cmake_args += [os .path .join (SWIFT_SOURCE_ROOT , "llvm-project" , "llvm " )]
250
250
self .call (cmake_args )
251
251
252
252
def build_target (self , build_dir , target , env = None ):
@@ -449,6 +449,17 @@ def main():
449
449
if not args .install_destdir :
450
450
args .install_destdir = os .path .join (args .build_dir , "install" )
451
451
452
+ swift_src_path = os .path .join (SWIFT_SOURCE_ROOT , "swift" )
453
+ swift_src_in_llvm_project_path = \
454
+ os .path .join (SWIFT_SOURCE_ROOT , "llvm-project" , "swift" )
455
+ # Need to symlink 'swift' into 'llvm-project' since we will be doing
456
+ # a unified configure with 'swift' as an external project.
457
+ if not os .path .exists (swift_src_in_llvm_project_path ):
458
+ print ("Symlinking '%s' to '%s'" %
459
+ (swift_src_path , swift_src_in_llvm_project_path ), file = sys .stderr )
460
+ shell .symlink (swift_src_path , swift_src_in_llvm_project_path ,
461
+ dry_run = args .dry_run , echo = args .verbose )
462
+
452
463
architectures = args .architectures .split (" " )
453
464
architectures = [arch for arch in architectures if arch != "" ]
454
465
if platform .machine () in architectures :
0 commit comments