[libcxxabi] r220509 - Only link the tests against -ldl on linux

Jonathan Roelofs jonathan at codesourcery.com
Thu Oct 23 15:40:08 PDT 2014



On 10/23/14 2:44 PM, Eric Fiselier wrote:
> Author: ericwf
> Date: Thu Oct 23 15:44:25 2014
> New Revision: 220509
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=220509&view=rev
> Log:
> Only link the tests against -ldl on linux
> 
> Modified:
>     libcxxabi/trunk/test/lit.cfg
> 
> Modified: libcxxabi/trunk/test/lit.cfg
> URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/test/lit.cfg?rev=220509&r1=220508&r2=220509&view=diff
> ==============================================================================
> --- libcxxabi/trunk/test/lit.cfg (original)
> +++ libcxxabi/trunk/test/lit.cfg Thu Oct 23 15:44:25 2014
> @@ -227,7 +227,7 @@ san = lit_config.params.get('llvm_use_sa
>  if san is None:
>      san = getattr(config, 'llvm_use_sanitizer', None)
>  if san:
> -    if not sys.platform.startswith('freebsd'):
> +    if sys.platform == 'linux2':
What is 'linux2'? Is that a typo? Is this needed on Mac?

Jon
>          link_flags += ['-ldl']
>      if san == 'Address':
>          compile_flags += ['-fsanitize=address']
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> 

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-commits mailing list