Skip to content

Commit

Permalink
mingw-build: Place libwinpthread-1.dll in 'lib' directory
Browse files Browse the repository at this point in the history
Place `libwinpthread-1.dll` in `lib` directory so that it can be
discovered using `clang -print-file-name=libwinpthread-1.dll` command
line, as done by the Zephyr SDK LLVM build script.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Oct 26, 2024
1 parent df7b045 commit 5bef910
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mingw-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ build_mingw_toolchain() {
make install
popd

# Place libwinpthread-1.dll in 'lib' directory so that it can be discovered
# using 'clang -print-file-name=libwinpthread-1.dll'.
pushd ${prefix}/x86_64-w64-mingw32
cp bin/libwinpthread-1.dll lib
popd

# Restore environment
popd
export PATH=${old_path}
Expand Down

0 comments on commit 5bef910

Please sign in to comment.