Skip to content

Conversation

compnerd
Copy link
Member

There is no special environment variable to be set, the dlls must be
co-located or be found in Path.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

There is no special environment variable to be set, the dlls must be
co-located or be found in `Path`.
@compnerd
Copy link
Member Author

CC: @eeckstein

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

@@ -744,8 +744,6 @@ function(_compile_swift_files
set(set_environment_args "${CMAKE_COMMAND}" "-E" "env" "DYLD_LIBRARY_PATH=${bs_lib_dir}")
elseif(SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD")
set(set_environment_args "${CMAKE_COMMAND}" "-E" "env" "LD_LIBRARY_PATH=${bs_lib_dir}")
else()
message(FATAL_ERROR "TODO: bootstrapping support for ${SWIFT_HOST_VARIANT_SDK}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dlls must be co-located or be found in Path.

That means you have to copy the stdlib dlls, or set the PATH, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. But changing the Path is going to be very tricky here. Fortunately, the dlls are emitted next to the binaries on Windows already :)

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - bd9b427

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd compnerd merged commit 6f22916 into swiftlang:main Dec 21, 2021
@compnerd compnerd deleted the libswift branch December 21, 2021 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants