From 6d7d52c17f8d7351372eb5875ddce3e8291e4199 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 23 Apr 2016 00:34:13 +0200 Subject: [PATCH] src/wscript_build: only no -lm if compiler is CL.exe --- src/wscript_build | 2 +- tests/wscript_build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'] -- 2.11.0