From: Paul Brossier Date: Fri, 22 Apr 2016 22:34:13 +0000 (+0200) Subject: src/wscript_build: only no -lm if compiler is CL.exe X-Git-Tag: 0.4.4~300^2~246 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6d7d52c17f8d7351372eb5875ddce3e8291e4199;p=aubio.git src/wscript_build: only no -lm if compiler is CL.exe --- diff --git a/src/wscript_build b/src/wscript_build index d4249046..bd5fa26f 100644 --- a/src/wscript_build +++ b/src/wscript_build @@ -12,7 +12,7 @@ uselib += ['BLAS'] # build each source files source = ctx.path.ant_glob('*.c **/*.c') -lib = 'm' if ctx.env['DEST_OS'] not in ['win32', 'win64'] else None +lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None ctx(features = 'c', source = source, includes = ['.'], diff --git a/tests/wscript_build b/tests/wscript_build index 379c5cf1..28ed3e3a 100644 --- a/tests/wscript_build +++ b/tests/wscript_build @@ -1,6 +1,6 @@ # vim:set syntax=python: -lib = 'm' if ctx.env['DEST_OS'] not in ['win32', 'win64'] else None +lib = 'm' if 'CL.exe' not in ctx.env.CC[0] else None uselib = [] uselib += ['FFTW3', 'FFTW3F']