Repository navigation
Conversation
…USED=ON` This option is not typically meant for debug builds (one reason is that it disables incremental builds), but if used anyway, lets silence the warnings for cleaner logs in such jobs. E.g. VS2013, VS2019 Debug in CI: ``` LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:REF' specificatio ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/tf9p0r9eijgxqyof#L208 Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/x650jultxsd137eo#L209 clang-cl VS2026 Debug: ``` lld-link : warning : ignoring '/incremental' because REF is enabled; use '/opt:noref' to disable ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/3si68rb0oof2ksmf#L220 Follow-up to 66ad54e curl#20357
Member
Author
|
Ouch, I tapped into a new CMake feature? → yes, checking against multiple configs needs 3.19. sigh. https://ci.appveyor.com/project/curlorg/curl/builds/54910494 edit: edited #18704 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This option is not typically meant for debug builds (one reason is that
it disables incremental builds), but if used anyway, silence the
warnings for cleaner logs in such jobs.
E.g. VS2013, VS2019 Debug in CI:
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/tf9p0r9eijgxqyof#L208
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/x650jultxsd137eo#L209
clang-cl VS2026 Debug:
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/54910213/job/3si68rb0oof2ksmf#L220
Also:
-OPT:NOICFis the default for Debug builds.-OPT:NOREFconflicts withCURL_DROP_UNUSED=ON.-INCREMENTAL:NOis set viaCURL_DROP_UNUSED=ONafter this patch,implied before.
Refs:
https://cmake.org/cmake/help/v3.19/manual/cmake-generator-expressions.7.html
https://cmake.org/cmake/help/v3.18/manual/cmake-generator-expressions.7.html
https://learn.microsoft.com/cpp/build/reference/opt-optimizations
Follow-up to 66ad54e #20357
Follow-up to a72b479 #15657