-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[CMake]Fully delete the deprecated LLVM_USE_CRT* #66850
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,10 +70,6 @@ foreach(variable ${_FUCHSIA_BOOTSTRAP_PASSTHROUGH}) | |
endif() | ||
endforeach() | ||
|
||
if(WIN32) | ||
set(LLVM_USE_CRT_RELEASE "MT" CACHE STRING "") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here - we should probably set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above, maybe Line57 is enough? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean line 91 here? Ok, that's also present elsewhere here. |
||
endif() | ||
|
||
set(CLANG_DEFAULT_CXX_STDLIB libc++ CACHE STRING "") | ||
set(CLANG_DEFAULT_LINKER lld CACHE STRING "") | ||
set(CLANG_DEFAULT_OBJCOPY llvm-objcopy CACHE STRING "") | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -470,7 +470,6 @@ endif() | |
option(LLVM_ENABLE_WARNINGS "Enable compiler warnings." ON) | ||
|
||
if( MSVC ) | ||
include(ChooseMSVCCRT) | ||
|
||
# Add definitions that make MSVC much less annoying. | ||
add_compile_definitions( | ||
|
@@ -951,7 +950,7 @@ if(LLVM_USE_SANITIZER) | |
endif() | ||
# Prepare ASAN runtime if needed | ||
if (LLVM_USE_SANITIZER MATCHES ".*Address.*") | ||
if (${LLVM_USE_CRT_${uppercase_CMAKE_BUILD_TYPE}} MATCHES "^(MT|MTd)$") | ||
if (${CMAKE_MSVC_RUNTIME_LIBRARY} MATCHES "^(MultiThreaded|MultiThreadedDebug)$") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I wonder how I had missed this one while doing the deprecation cleanup... |
||
append("/wholearchive:clang_rt.asan-${arch}.lib /wholearchive:clang_rt.asan_cxx-${arch}.lib" | ||
CMAKE_EXE_LINKER_FLAGS) | ||
append("/wholearchive:clang_rt.asan_dll_thunk-${arch}.lib" | ||
|
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 case here seems to lack a corresponding setting of
CMAKE_MSVC_RUNTIME_LIBRARY
- I guess we should add that to make this a proper no-op?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.
It's been set at Line 57?
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.
Right, I didn't see that one.