[compiler-rt] r261229 - [tsan] Disable sysroot flag on FreeBSD
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 18 17:08:57 PST 2016
On Thu, Feb 18, 2016 at 9:35 AM, Ed Maste via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: emaste
> Date: Thu Feb 18 11:35:30 2016
> New Revision: 261229
>
> URL: http://llvm.org/viewvc/llvm-project?rev=261229&view=rev
> Log:
> [tsan] Disable sysroot flag on FreeBSD
>
> FreeBSD does not install a number of Clang-provided headers for the
> compiler in the base system due to incompatibilities between FreeBSD's
> and Clang's versions. As a workaround do not use --sysroot=. on FreeBSD
> until this is addressed.
>
Out of curiousity, how do you currently make sure that you only install a
subset of clang's builtin headers? Is it with an out-of-tree mechanism? We
do it out of tree for PS4 and I'm curious how you guys are doing it.
-- Sean Silva
> llvm.org/pr26651
> Differential Revision: http://reviews.llvm.org/D17383
>
> Modified:
> compiler-rt/trunk/lib/tsan/CMakeLists.txt
>
> Modified: compiler-rt/trunk/lib/tsan/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/CMakeLists.txt?rev=261229&r1=261228&r2=261229&view=diff
>
> ==============================================================================
> --- compiler-rt/trunk/lib/tsan/CMakeLists.txt (original)
> +++ compiler-rt/trunk/lib/tsan/CMakeLists.txt Thu Feb 18 11:35:30 2016
> @@ -192,7 +192,11 @@ endif()
> add_dependencies(compiler-rt tsan)
>
> # Make sure that non-platform-specific files don't include any system
> headers.
> -if(COMPILER_RT_HAS_SYSROOT_FLAG)
> +# FreeBSD does not install a number of Clang-provided headers for the
> compiler
> +# in the base system due to incompatibilities between FreeBSD's and
> Clang's
> +# versions. As a workaround do not use --sysroot=. on FreeBSD until this
> is
> +# addressed.
> +if(COMPILER_RT_HAS_SYSROOT_FLAG AND NOT CMAKE_SYSTEM_NAME MATCHES
> "FreeBSD")
> file(GLOB _tsan_generic_sources rtl/tsan*)
> file(GLOB _tsan_platform_sources rtl/tsan*posix* rtl/tsan*mac*
> rtl/tsan*linux*)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160218/f09f4ccf/attachment.html>
More information about the llvm-commits
mailing list