[test-suite] r302900 - Add -lm to plot2fig

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Fri May 12 07:28:49 PDT 2017


Author: rovka
Date: Fri May 12 09:28:49 2017
New Revision: 302900

URL: http://llvm.org/viewvc/llvm-project?rev=302900&view=rev
Log:
Add -lm to plot2fig

This is needed for the calls to fabs in plot2fig/space.c.

We used to be able to get away without it because the calls were lowered
to hardware fabs, but with GlobalISel on AArch64 we don't do that yet.

Modified:
    test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt

Modified: test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt?rev=302900&r1=302899&r2=302900&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt (original)
+++ test-suite/trunk/MultiSource/Benchmarks/Prolangs-C/plot2fig/CMakeLists.txt Fri May 12 09:28:49 2017
@@ -2,5 +2,6 @@ include(CheckFunctionExists)
 check_function_exists(re_comp HAVE_RE_COMP)
 if(HAVE_RE_COMP)
   set(PROG plot2fig)
+  list(APPEND LDFLAGS -lm)
   llvm_multisource()
 endif()




More information about the llvm-commits mailing list