Mesa (master): llvmpipe: Don't build lp_test_round when using MSVC.

Vinson Lee vlee at kemper.freedesktop.org
Wed Jul 7 00:27:59 UTC 2010


Module: Mesa
Branch: master
Commit: c89ea8f213c272b79ba0d0492597140ea20d7693
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c89ea8f213c272b79ba0d0492597140ea20d7693

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Jul  6 17:25:39 2010 -0700

llvmpipe: Don't build lp_test_round when using MSVC.

lp_test_round uses the math functions round and trunc, which aren't
available with MSVC.

Fixes the MSVC build for now.

---

 src/gallium/drivers/llvmpipe/SConscript |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript
index 57a6e71..543d42d 100644
--- a/src/gallium/drivers/llvmpipe/SConscript
+++ b/src/gallium/drivers/llvmpipe/SConscript
@@ -80,10 +80,12 @@ if env['platform'] != 'embedded':
         'blend',
         'conv',
 	'printf',
-	'round',
 	'sincos',
     ]
 
+    if not msvc:
+        tests.append('round')
+
     for test in tests:
         target = env.Program(
             target = 'lp_test_' + test,




More information about the mesa-commit mailing list