Skip to content

Commit

Permalink
qmake MSYS2 disabled LLD linker override for g++
Browse files Browse the repository at this point in the history
LLD isn't faster than bfd, I also did linking when bfd was faster than
LLD.

 - also updated docs

[skip ci]
  • Loading branch information
silverqx committed Aug 26, 2024
1 parent efa0c4e commit ea71bdf
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env.mingw.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
#QMAKE_LFLAGS *= -fuse-ld=lld

# vcpkg - range-v3 and tabulate
TINY_VCPKG_ROOT = $$quote(C:/msys64/home/xyz/Code/vcpkg/)
Expand Down
2 changes: 1 addition & 1 deletion conf.pri.example
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ win32-g++|win32-clang-g++ {

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# QMAKE_LFLAGS *= -fuse-ld=lld

# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
Expand Down
2 changes: 1 addition & 1 deletion docs/building/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ TINY_VCPKG_TRIPLET = x64-mingw-dynamic
# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
#QMAKE_LFLAGS *= -fuse-ld=lld
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion docs/building/migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ TINY_VCPKG_TRIPLET = x64-mingw-dynamic
# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
#QMAKE_LFLAGS *= -fuse-ld=lld
```

</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion drivers/conf.pri.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ win32-g++|win32-clang-g++ {

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# QMAKE_LFLAGS *= -fuse-ld=lld

# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
Expand Down
2 changes: 1 addition & 1 deletion examples/tom/conf.pri.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ win32-g++|win32-clang-g++ {

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# QMAKE_LFLAGS *= -fuse-ld=lld

# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
Expand Down
2 changes: 1 addition & 1 deletion tests/conf.pri.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ win32-g++|win32-clang-g++ {

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# QMAKE_LFLAGS *= -fuse-ld=lld

# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata_tom/conf.pri.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ win32-g++|win32-clang-g++ {

# Use alternative linker (for both GCC and Clang)
# CONFIG *= use_lld_linker does not work on MinGW
QMAKE_LFLAGS *= -fuse-ld=lld
# QMAKE_LFLAGS *= -fuse-ld=lld

# Nothing to do, auto-configuration is enabled
!disable_autoconf: return()
Expand Down

0 comments on commit ea71bdf

Please sign in to comment.