mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-05 12:45:58 -07:00
Use proper capitalization for MSVC linker flags
The linker flags are case insensitive [1] but it would be better to use the proper capitalization [2]. [1] https://learn.microsoft.com/en-us/cpp/build/reference/linking?view=msvc-170#command-line [2] https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-guard-checks?view=msvc-170 PR #22940.
This commit is contained in:
parent
70a6153b78
commit
99d25eec71
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci_windows.yaml
vendored
2
.github/workflows/ci_windows.yaml
vendored
|
@ -121,7 +121,7 @@ jobs:
|
|||
${{ env.libtorrent_path }}
|
||||
cd ${{ env.libtorrent_path }}
|
||||
$env:CXXFLAGS+=" /guard:cf"
|
||||
$env:LDFLAGS+=" /guard:cf"
|
||||
$env:LDFLAGS+=" /GUARD:CF"
|
||||
cmake `
|
||||
-B build `
|
||||
-G "Ninja" `
|
||||
|
|
|
@ -89,7 +89,7 @@ if (MSVC)
|
|||
/Zc:__cplusplus
|
||||
)
|
||||
target_link_options(qbt_common_cfg INTERFACE
|
||||
/guard:cf
|
||||
/GUARD:CF
|
||||
$<$<NOT:$<CONFIG:Debug>>:/OPT:REF /OPT:ICF>
|
||||
# suppress linking warning due to /INCREMENTAL and /OPT:ICF being both ON
|
||||
$<$<CONFIG:RelWithDebInfo>:/INCREMENTAL:NO>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue