-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from nandor/master
upgraded to dune 2.0, fixed cross-compilation
- Loading branch information
Showing
18 changed files
with
45 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
PHONY: build | ||
build: | ||
dune build -p eigen eigen_cpp/libeigen_cpp_stubs.a | ||
dune build -p eigen | ||
|
||
PHONY: install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
(lang dune 1.5) | ||
(lang dune 2.0) | ||
(name eigen) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
(rule | ||
(targets libeigen_cpp_stubs.a dlleigen_cpp_stubs.so) | ||
(deps lib/libeigen.a lib/libeigen.so) | ||
(action | ||
(progn | ||
(bash "cp lib/libeigen.a libeigen.a") | ||
(bash "ar -x libeigen.a") | ||
(bash "ocamlmklib.opt -g -o eigen_cpp_stubs *.o -lstdc++") | ||
) | ||
) | ||
) | ||
(* -*- tuareg -*- *) | ||
|
||
let optflags = | ||
match Sys.getenv "EIGENCPP_OPTFLAGS" with | ||
| s -> | ||
s | ||
| exception Not_found -> | ||
"-Ofast -march=native -mfpmath=sse -funroll-loops -ffast-math" | ||
|
||
let () = Printf.ksprintf Jbuild_plugin.V1.send {| | ||
|
||
(include_subdirs unqualified) | ||
|
||
(library | ||
(name eigen_cpp) | ||
(name eigen_cpp_stubs) | ||
(public_name eigen.cpp) | ||
(libraries ctypes) | ||
(c_library_flags | ||
(:standard -lstdc++) | ||
) | ||
(self_build_stubs_archive | ||
(eigen_cpp) | ||
(foreign_stubs | ||
(language cxx) | ||
(names eigen_tensor eigen_dsmat eigen_spmat) | ||
(include_dirs lib lib/unsupported) | ||
(flags | ||
:standard | ||
-fPIC | ||
-ansi | ||
-O3 | ||
-std=c++11 | ||
-pedantic | ||
-Wall | ||
-Wno-invalid-partial-specialization | ||
-Wno-extern-c-compat | ||
-Wno-c++11-long-long | ||
%s | ||
) | ||
) | ||
(c_library_flags :standard -lstdc++) | ||
) | ||
|
||
|} optflags |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
eigen_cpp/lib/unsupported/Eigen/src/EulerAngles/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.