Skip to content
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

Add AddressSanitizer support to fibers. #2975

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

JohanEngelen
Copy link
Member

No description provided.

@JohanEngelen
Copy link
Member Author

@JohanEngelen JohanEngelen force-pushed the asan_fiber branch 6 times, most recently from d1b2321 to 7c5e5b1 Compare January 25, 2019 00:25
@JohanEngelen
Copy link
Member Author

JohanEngelen commented Jan 25, 2019

Linux functionality depends on #2976 pragma(LDC_extern_weak)

@JohanEngelen JohanEngelen force-pushed the asan_fiber branch 2 times, most recently from 63c0295 to dcb9e4f Compare January 25, 2019 18:30
@JohanEngelen
Copy link
Member Author

Manually tested on macOS and Ubuntu now. I'm satisfied with it now.

Depends on #2984

@@ -27,6 +27,7 @@ config.gnu_make_bin = "@GNU_MAKE_BIN@"
config.ldc_host_arch = "@LDC_HOST_ARCH@"
config.ldc_with_lld = "@LDC_WITH_LLD@" == "ON"
config.spirv_enabled = @LLVM_SPIRV_FOUND@ +0 # LLVM_SPIRV_FOUND is blank if not set
config.rt_supports_sanitizers = "@RT_SUPPORT_SANITIZERS@" == "ON"
Copy link
Member

@kinke kinke Feb 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but a cached RT_SUPPORT_SANITIZERS CMake variable might be 1 instead of ON. I think that's why I added

ldc/CMakeLists.txt

Lines 483 to 488 in 4b101ba

# translate 1/0 to ON/OFF
if(LDC_WITH_LLD)
set(LDC_WITH_LLD ON)
else()
set(LDC_WITH_LLD OFF)
endif()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to merge anyway in order to move forward.

@kinke kinke merged commit e25c4ee into ldc-developers:master Feb 15, 2019
@JohanEngelen JohanEngelen deleted the asan_fiber branch February 16, 2019 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants