only compile pbqp stuff if pbqp defines are enabled
authorMatthias Braun <matze@braunis.de>
Fri, 4 Sep 2009 13:18:57 +0000 (13:18 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 4 Sep 2009 13:18:57 +0000 (13:18 +0000)
[r26487]

ir/be/becopyopt.c
ir/be/becopypbqp.c

index 6cf88f7..f4c28a3 100644 (file)
@@ -1119,7 +1119,9 @@ static co_algo_info_t algos[] = {
 #else
        { NULL,                    "ilp",   1 },
 #endif
+#ifdef FIRM_KAPS
        { co_solve_heuristic_pbqp, "pbqp",  0 },
+#endif
        { NULL,                    "",      0 }
 };
 
index c222bbe..183bc49 100644 (file)
@@ -4,6 +4,7 @@
  *  Created on: Aug 28, 2009
  *      Author: bersch
  */
+#ifdef FIRM_KAPS
 
 #include "kaps.h"
 #include "pbqp_t.h"
@@ -213,3 +214,5 @@ int co_solve_heuristic_pbqp(copy_opt_t *co) {
 
        return 0;
 }
+
+#endif