summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/compile-test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-10 06:42:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-10 06:42:15 +0200
commite85d85265adb9f3d1eba93811440a83b6b74500d (patch)
tree651fa9c984d644ed168761fcbb980a4fac9d9bc9 /tracker-aruco/compile-test
parent8c1dec7a5f16bd1eed656810a7009f4ce87adc80 (diff)
tracker/aruco: simplify abi test
The issue was that with LTO enabled, the `try_compile' call took way too long for a simple compile test. Rather, add a #define to Aruco to avoid the slow link. Bump aruco ABI version. Please update your opentrack/aruco and/or opentrack/opentrack-depends repos.
Diffstat (limited to 'tracker-aruco/compile-test')
-rw-r--r--tracker-aruco/compile-test/abi.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/tracker-aruco/compile-test/abi.cpp b/tracker-aruco/compile-test/abi.cpp
index 633188de..9c72fe2a 100644
--- a/tracker-aruco/compile-test/abi.cpp
+++ b/tracker-aruco/compile-test/abi.cpp
@@ -1,11 +1,7 @@
-#include "../../compat/linkage-macros.hpp"
+#include <aruco/abi.h>
-#define ARUCO_ABI aruco_opentrack_fork_abi_1
+#if ARUCO_OPENTRACK_FORK_ABI != 2
+# error "wrong ABI"
+#endif
-extern "C" void ARUCO_ABI(void);
-
-int main(void)
-{
- ARUCO_ABI();
- return 0;
-}
+int main(void) { return 0; }