Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Albano
LLVM bpEVL
Commits
f6d5475e
Commit
f6d5475e
authored
8 years ago
by
Reid Kleckner
Browse files
Options
Downloads
Patches
Plain Diff
Disable thread safe statics in clang-cl, they call the CRT
Also remove the needless static that was using them. llvm-svn: 276327
parent
1acbc520
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
compiler-rt/CMakeLists.txt
+1
-1
1 addition, 1 deletion
compiler-rt/CMakeLists.txt
compiler-rt/lib/asan/asan_win.cc
+1
-1
1 addition, 1 deletion
compiler-rt/lib/asan/asan_win.cc
with
2 additions
and
2 deletions
compiler-rt/CMakeLists.txt
+
1
−
1
View file @
f6d5475e
...
...
@@ -198,7 +198,7 @@ if(MSVC)
# VS 2015 (version 1900) added support for thread safe static initialization.
# However, ASan interceptors run before CRT initialization, which causes the
# new thread safe code to crash. Disable this feature for now.
if
(
MSVC_VERSION GREATER 1899
)
if
(
MSVC_VERSION GREATER 1899
OR
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
list
(
APPEND SANITIZER_COMMON_CFLAGS /Zc:threadSafeInit-
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
compiler-rt/lib/asan/asan_win.cc
+
1
−
1
View file @
f6d5475e
...
...
@@ -235,7 +235,7 @@ void AsanOnDeadlySignal(int, void *siginfo, void *context) {
// Exception handler for dealing with shadow memory.
static
LONG
CALLBACK
ShadowExceptionHandler
(
PEXCEPTION_POINTERS
exception_pointers
)
{
static
uptr
page_size
=
GetPageSizeCached
();
uptr
page_size
=
GetPageSizeCached
();
// Only handle access violations.
if
(
exception_pointers
->
ExceptionRecord
->
ExceptionCode
!=
EXCEPTION_ACCESS_VIOLATION
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment