aboutsummaryrefslogtreecommitdiff
path: root/runtime
AgeCommit message (Collapse)Author
2013-03-20Split ubsan runtime into three pieces (clang part):Richard Smith
* libclang_rt-san-* is sanitizer_common, and is linked in only if no other sanitizer runtime is present. * libclang_rt-ubsan-* is the piece of the runtime which doesn't depend on a C++ ABI library, and is always linked in. * libclang_rt-ubsan_cxx-* is the piece of the runtime which depends on a C++ ABI library, and is only linked in when linking a C++ binary. This change also switches us to using -whole-archive for the ubsan runtime (which is made possible by the above split), and switches us to only linking the sanitizer runtime into the main binary and not into DSOs (which is made possible by using -whole-archive). The motivation for this is to only link a single copy of sanitizer_common into any binary. This is becoming important now because we want to share more state between multiple sanitizers in the same process (for instance, we want a single shared output mutex). The Darwin ubsan runtime is unchanged; because we use a DSO there, we don't need this complexity. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177605 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-21Add MSan to the list of targets in Makefile-based builds.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175738 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-16UBSan: enable proper linking with UBsan runtime on Darwin. Turn on building ↵Alexey Samsonov
ubsan on OS X in 'make' build system. Patch by Jean-Daniel Dupas. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168168 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-15[UBSan] Add support for building ubsan runtime library on Linux with 'make'. ↵Alexey Samsonov
Clang part. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168039 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-24Pass LLVM_ANDROID_TOOLCHAIN_DIR if set.Evgeniy Stepanov
This lets one build ASan runtime for ARM/Android by running make -C tools/clang/runtime/ \ LLVM_ANDROID_TOOLCHAIN_DIR=/path/to/ndk/toolchain in an existing build tree. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166560 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-15Un-revert r164907 and r164902 (+ follow-ups), 10.6 build fix to follow.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165988 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-15Revert r164907 and r164902 (+ follow-ups). They broke building on 10.6.Nico Weber
See PR14013. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165962 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-09Fixup for r165097: build 32-bit ASan compiler-rt library on 64-bit Linux ↵Alexey Samsonov
only if just-built clang can build simple 32-bit executables git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165503 91177308-0d34-0410-b5e6-96231b3b80d8
2012-10-03Make sure 32-bit ASan runtime is available on 64-bit Linux platformsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165097 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-29Add Clang support for iOS6.Bob Wilson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164907 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-17Run install_name_tool to fix the dynamic library ID after it has been copied.Alexander Potapenko
Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=113 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164031 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-14compiler-rt/darwin: Install asan_osx_dynamic with the other runtime libraries.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163941 91177308-0d34-0410-b5e6-96231b3b80d8
2012-06-25build/compiler-rt: Companion commit to r159172.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159174 91177308-0d34-0410-b5e6-96231b3b80d8
2012-05-16[tsan] add ThreadSanitizer linker flags on Linux and also copy the tsan-rt ↵Kostya Serebryany
into the appropriate place at build time git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156906 91177308-0d34-0410-b5e6-96231b3b80d8
2012-03-05build/compiler-rt: Stop forcing off -integrated-as for compiler-rt builds.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152054 91177308-0d34-0410-b5e6-96231b3b80d8
2012-02-24Use -no-integrated-as only on ARM. The X86 and X86-64 integrated as have beenRafael Espindola
the default for clang for some time now and can handle compiler-rt. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151367 91177308-0d34-0410-b5e6-96231b3b80d8
2012-01-21Use the new installheaders makefile target in libcxx.Bob Wilson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148630 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-07runtime/Linux: Include the profile and ASAN libs on x86.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146051 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-02runtime/Linux: Initial support for tying compiler-rt build into Clang build onDaniel Dunbar
Linux. - Currently just builds a full library, and only on x86, and only for the target arch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145672 91177308-0d34-0410-b5e6-96231b3b80d8
2011-12-01Driver/Darwin: Add ASAN runtime library link support.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145651 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-27Use libcxx makefile's do-installhdrs target. <rdar://problem/10397739>Bob Wilson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145168 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-17clang/Darwin: Use the compiler-rt provided profile library.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144869 91177308-0d34-0410-b5e6-96231b3b80d8
2011-11-16build/make/compiler-rt: Don't attempt to build compiler-rt runtime librariesDaniel Dunbar
when cross compiling under the current organization. - See verbose comment for explanation, justification, and how to fix. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144860 91177308-0d34-0410-b5e6-96231b3b80d8
2011-09-30Install a copy of the libc++ headers with clang. <rdar://problem/10096516>Bob Wilson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140876 91177308-0d34-0410-b5e6-96231b3b80d8
2011-06-22Build and use libcompiler_rt whenever possible.Eric Christopher
Patch by Jean-Daniel Dupas! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133624 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-18Driver/Darwin: Change to use generic iOS runtime library, which we now ↵Daniel Dunbar
always need. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129734 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Restore accidentally deleted file (I blame svn).Nick Lewycky
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129588 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Reapply r129561, moving the runtime/Makefile that builds compiler-rt intoNick Lewycky
runtime/compiler-rt/Makefile paving the way to put multiple different libraries into runtime/ and build all of them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129585 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Doug Gregor tells me that runtime/libcxx/ is a placeholder for stuff we neverNick Lewycky
did. Delete it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129584 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Revert r129561, which broke one of the clang buildbots.Owen Anderson
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129581 91177308-0d34-0410-b5e6-96231b3b80d8
2011-04-15Create a compiler-rt directory and move the Makefile to it. Add a makefile thatNick Lewycky
builds the subdirs from this directory. This makes the behaviour with make match what already happens with cmake. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129561 91177308-0d34-0410-b5e6-96231b3b80d8
2011-02-11build/compiler-rt: Fake Clang into using the right assembler to build the ARMDaniel Dunbar
bits for the runtime libraries. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125328 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-22build: Use CLANG_NO_RUNTIME=1 specifically, not just any definition.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122449 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-16CMake: Add runtime dir.Michael J. Spencer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121957 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-01Fix build of in-tree libcxx. libcxx doesn't actuallyShantonu Sen
need any of the LLVM support libraries. Reviewed by Daniel Dunbar. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120602 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-29Merge System into Support.Michael J. Spencer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120297 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-22Driver/Darwin: Add a runtime library just for ___eprintf -- when targeting i386Daniel Dunbar
some projects still depend on ___eprintf being available. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114509 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-15build: Start sketching code to allow grafting libc++ build into LLVM/Clang ↵Daniel Dunbar
build if libc++ is checked out into llvm/projects. - WIP, not on by default yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113924 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-30Runtime: Always build compiler-rt using the Clang we just built, instead of theDaniel Dunbar
system CC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107328 91177308-0d34-0410-b5e6-96231b3b80d8
2010-06-30Move lib/Runtime to runtime/, and build after everything else.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107327 91177308-0d34-0410-b5e6-96231b3b80d8