[mlpack-git] master: Linux specific dependencies (0aad1ee)
gitdub at mlpack.org
gitdub at mlpack.org
Sat Mar 5 15:17:29 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/fd84f3a2e53592d723a8e8a76dadb8aa76820913...1a9c41a86be1fa1dcc5c3b90dd959c2255c3bb8e
>---------------------------------------------------------------
commit 0aad1ee569cf6d1551b11b978d6e2464f7f65795
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date: Sat Mar 5 21:17:29 2016 +0100
Linux specific dependencies
...compile backtrace.hpp only when OS is Linux
>---------------------------------------------------------------
0aad1ee569cf6d1551b11b978d6e2464f7f65795
src/mlpack/core.hpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core.hpp b/src/mlpack/core.hpp
index 1533e57..df6e01e 100644
--- a/src/mlpack/core.hpp
+++ b/src/mlpack/core.hpp
@@ -191,7 +191,6 @@
// Now the core mlpack classes.
#include <mlpack/core/util/arma_traits.hpp>
-#include <mlpack/core/util/backtrace.hpp>
#include <mlpack/core/util/log.hpp>
#include <mlpack/core/util/cli.hpp>
#include <mlpack/core/data/load.hpp>
@@ -206,6 +205,10 @@
#include <mlpack/core/dists/discrete_distribution.hpp>
#include <mlpack/core/dists/gaussian_distribution.hpp>
#include <mlpack/core/dists/laplace_distribution.hpp>
+//mlpack::backtrace only for linux
+#ifdef HAS_BFD_DL
+ #include <mlpack/core/util/backtrace.hpp>
+#endif
// Include kernel traits.
#include <mlpack/core/kernels/kernel_traits.hpp>
More information about the mlpack-git
mailing list