diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-23 14:02:50 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-23 11:25:14 +0100 |
commit | 39d18384121768460775b5ec320e444b022f5646 (patch) | |
tree | 7d1f1382ba360bf9090d16564fd779dabea2b117 /solenv | |
parent | b889b33d928e49ba568ee1277c70d653083a2453 (diff) |
Suppress linker warnings for CLR objects
climaker_app.o : /DEBUG:FASTLINK is not supported when managed code is present; restarting link with /DEBUG:FULL
Change-Id: Ia4c8ef862999650b317629273996166908232494
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163804
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/gbuild/platform/filter-creatingLibrary.awk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/filter-creatingLibrary.awk b/solenv/gbuild/platform/filter-creatingLibrary.awk index 231609feb2d5..625af2891c0e 100755 --- a/solenv/gbuild/platform/filter-creatingLibrary.awk +++ b/solenv/gbuild/platform/filter-creatingLibrary.awk @@ -15,6 +15,7 @@ BEGIN { creatinglibrary_prefix = ENVIRON["CREATINGLIBRARY_PREFIX"]; generatingcode_message = ENVIRON["GENERATINGCODE_MESSAGE"]; finishedgeneratingcode_message = ENVIRON["FINISHEDGENERATINGCODE_MESSAGE"]; + fastlink_in_clr_message = ENVIRON["FASTLINK_IN_CLR_MESSAGE"]; if (!creatinglibrary_prefix) { creatinglibrary_prefix = "\\.lib.*\\.exp" } @@ -24,23 +25,32 @@ BEGIN { if (!finishedgeneratingcode_message) { finishedgeneratingcode_message = "Finished generating code" } + if (!fastlink_in_clr_message) { + fastlink_in_clr_message = "DEBUG:FASTLINK.*DEBUG:FULL" + } firstline = 1 } { + keep_firstline = 0 if (firstline && match($0, creatinglibrary_prefix)) { # ignore } else if (match($0, generatingcode_message)) { # ignore } else if (match($0, finishedgeneratingcode_message)) { # ignore + } else if (match($0, fastlink_in_clr_message)) { + # ignore; "Creating library" will come after this warning + keep_firstline = 1 } else { # because MSVC stupidly prints errors on stdout, it's # necessary to forward everything that isn't matched by the pattern # so users get to see them. print $0 > "/dev/stderr" } - firstline = 0 + if (!keep_firstline) { + firstline = 0 + } } # vim: set noet sw=4 ts=4: |