diff --git a/.env.mingw.example b/.env.mingw.example index ade41a392..dc106d71f 100644 --- a/.env.mingw.example +++ b/.env.mingw.example @@ -1,9 +1,9 @@ # Enable ccache wrapper #CONFIG *= ccache -# Use alternative linker (for both GCC and Clang) +# Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -#QMAKE_LFLAGS *= -fuse-ld=lld +clang: QMAKE_LFLAGS *= -fuse-ld=lld # vcpkg - range-v3 and tabulate TINY_VCPKG_ROOT = $$quote(C:/msys64/home/xyz/Code/vcpkg/) diff --git a/.env.unix.example b/.env.unix.example index 27e9ca24d..f3c9348c0 100644 --- a/.env.unix.example +++ b/.env.unix.example @@ -1,7 +1,7 @@ # Enable ccache wrapper and PCH #CONFIG *= ccache precompile_header -# Use LLD linker for Clang +# Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker diff --git a/conf.pri.example b/conf.pri.example index 10512a3c8..c7fe59be3 100644 --- a/conf.pri.example +++ b/conf.pri.example @@ -103,9 +103,9 @@ win32-g++|win32-clang-g++ { # Enable ccache wrapper # CONFIG *= ccache - # Use alternative linker (for both GCC and Clang) + # Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -# QMAKE_LFLAGS *= -fuse-ld=lld + clang: QMAKE_LFLAGS *= -fuse-ld=lld # Nothing to do, auto-configuration is enabled !disable_autoconf: return() @@ -184,7 +184,7 @@ else:win32-msvc|win32-clang-msvc { # Unix else:unix { - # Use LLD linker for Clang + # Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker diff --git a/docs/building/hello-world.mdx b/docs/building/hello-world.mdx index f6b491f4c..d37231150 100644 --- a/docs/building/hello-world.mdx +++ b/docs/building/hello-world.mdx @@ -581,7 +581,7 @@ TINYORM_BUILD_TREE = $$quote($$TINY_MAIN_DIR/TinyORM-builds-qmake/build-TinyORM- TINY_VCPKG_ROOT = $$clean_path($$PWD/../../../vcpkg/) TINY_VCPKG_TRIPLET = x64-linux -# Use LLD linker for Clang +# Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker @@ -607,9 +607,9 @@ TINY_VCPKG_TRIPLET = x64-mingw-dynamic # Enable ccache wrapper #CONFIG *= ccache -# Use alternative linker (for both GCC and Clang) +# Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -#QMAKE_LFLAGS *= -fuse-ld=lld +clang: QMAKE_LFLAGS *= -fuse-ld=lld ``` diff --git a/docs/building/migrations.mdx b/docs/building/migrations.mdx index 0143310b0..63bf2e873 100644 --- a/docs/building/migrations.mdx +++ b/docs/building/migrations.mdx @@ -721,7 +721,7 @@ TINYORM_BUILD_TREE = $$quote($$TINY_MAIN_DIR/TinyORM-builds-qmake/build-TinyORM- TINY_VCPKG_ROOT = $$clean_path($$PWD/../../../vcpkg/) TINY_VCPKG_TRIPLET = x64-linux -# Use LLD linker for Clang +# Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker @@ -747,9 +747,9 @@ TINY_VCPKG_TRIPLET = x64-mingw-dynamic # Enable ccache wrapper #CONFIG *= ccache -# Use alternative linker (for both GCC and Clang) +# Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -#QMAKE_LFLAGS *= -fuse-ld=lld +clang: QMAKE_LFLAGS *= -fuse-ld=lld ``` diff --git a/drivers/conf.pri.example b/drivers/conf.pri.example index abc27c713..0aac31c7f 100644 --- a/drivers/conf.pri.example +++ b/drivers/conf.pri.example @@ -11,9 +11,9 @@ win32-g++|win32-clang-g++ { # Enable ccache wrapper # CONFIG *= ccache - # Use alternative linker (for both GCC and Clang) + # Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -# QMAKE_LFLAGS *= -fuse-ld=lld + clang: QMAKE_LFLAGS *= -fuse-ld=lld # Nothing to do, auto-configuration is enabled !disable_autoconf: return() @@ -88,7 +88,7 @@ else:win32-msvc|win32-clang-msvc { # Unix else:unix { - # Use LLD linker for Clang + # Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker diff --git a/examples/tom/conf.pri.example b/examples/tom/conf.pri.example index 98bb26ea9..94104c77d 100644 --- a/examples/tom/conf.pri.example +++ b/examples/tom/conf.pri.example @@ -24,9 +24,9 @@ win32-g++|win32-clang-g++ { # Enable ccache wrapper # CONFIG *= ccache - # Use alternative linker (for both GCC and Clang) + # Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -# QMAKE_LFLAGS *= -fuse-ld=lld + clang: QMAKE_LFLAGS *= -fuse-ld=lld # Nothing to do, auto-configuration is enabled !disable_autoconf: return() @@ -56,7 +56,7 @@ else:win32-msvc|win32-clang-msvc { # Unix else:unix { - # Use LLD linker for Clang + # Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker diff --git a/tests/conf.pri.example b/tests/conf.pri.example index ab58d988f..c1699bc60 100644 --- a/tests/conf.pri.example +++ b/tests/conf.pri.example @@ -11,9 +11,9 @@ win32-g++|win32-clang-g++ { # Enable ccache wrapper # CONFIG *= ccache - # Use alternative linker (for both GCC and Clang) + # Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -# QMAKE_LFLAGS *= -fuse-ld=lld + clang: QMAKE_LFLAGS *= -fuse-ld=lld # Nothing to do, auto-configuration is enabled !disable_autoconf: return() @@ -43,7 +43,7 @@ else:win32-msvc|win32-clang-msvc { # Unix else:unix { - # Use LLD linker for Clang + # Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker diff --git a/tests/testdata_tom/conf.pri.example b/tests/testdata_tom/conf.pri.example index ab58d988f..c1699bc60 100644 --- a/tests/testdata_tom/conf.pri.example +++ b/tests/testdata_tom/conf.pri.example @@ -11,9 +11,9 @@ win32-g++|win32-clang-g++ { # Enable ccache wrapper # CONFIG *= ccache - # Use alternative linker (for both GCC and Clang) + # Prefer LLD linker for Clang # CONFIG *= use_lld_linker does not work on MinGW -# QMAKE_LFLAGS *= -fuse-ld=lld + clang: QMAKE_LFLAGS *= -fuse-ld=lld # Nothing to do, auto-configuration is enabled !disable_autoconf: return() @@ -43,7 +43,7 @@ else:win32-msvc|win32-clang-msvc { # Unix else:unix { - # Use LLD linker for Clang + # Prefer LLD linker for Clang clang: CONFIG *= use_lld_linker else: CONFIG *= use_gold_linker