-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Reland [asan][windows] Eliminate the static asan runtime on windows #107899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
barcharcraz
merged 23 commits into
llvm:main
from
barcharcraz:dev/chbarto/static_with_dynamic
Sep 9, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4c0769c
Build ASAN libraries with /MD instead of /MT on winodws
barcharcraz d51cbaa
Remove the static ASAN runtimes
barcharcraz a341026
make it an error to pass -static-libsan on windows and make shared th…
barcharcraz 998f586
Teach the MSVC toolchain driver to link the correct asan libraries.
barcharcraz f10eae8
Because all DLLs get initialized before the main module
barcharcraz 675e9ac
Clean up asan_malloc_win.cpp and add exports
barcharcraz 95a96da
add new substitutions to the tests to support the new static/dynamic …
barcharcraz 869bd5b
intercept atoll for the static runtime.
barcharcraz e3cf86e
Remove sanitizer_win_dll_thunk.h from the build
barcharcraz b7dca28
exclude windows specific interface symbols from linux/darwin tests.
barcharcraz 1d97254
correct asan library checks in clang driver tests.
barcharcraz f35df51
remove unused files from asan windows build
barcharcraz 6d72c92
Clean up wording of comment in compiler-rt cmakelists file
barcharcraz 30e4174
rename sanitizer_win_thunk_interception.h header guard
barcharcraz 05d982b
Test fixups requiring functional changes
barcharcraz 0b749a2
Add the compiler-rt libdir to path for lit in both static and dynamic…
barcharcraz 6b1c622
Pass -D_DLL and -D_MT to the linker for tests
barcharcraz 8607602
clang-format
barcharcraz ed8221c
[asan][windows] Yet more relaxation of tests
barcharcraz e8c2807
[LLVM 19] don't optimize register_weak_<whatever> when building with …
barcharcraz 4f72a1e
ensure the asan runtime is always linked with /OPT:NOICF on windows, …
barcharcraz 75239e2
delete asan_win_weak_interception, which was unused
barcharcraz 3667ecd
set the C runtime linkage to /MD only for sanitizer_common, intercept…
barcharcraz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line seems to be the problem, reverting it fixes the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be safe to revert, and I'll make a PR reverting it (and probably just commit it if it doesn't get any reviews before I go to sleep).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've opened #108329 which should revert this particular edit (which was arguably a driveby change anyway)