-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdune
More file actions
37 lines (31 loc) · 785 Bytes
/
dune
File metadata and controls
37 lines (31 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(* -*- tuareg -*- *)
let optflags =
match Sys.getenv "EIGENCPP_OPTFLAGS" with
| s ->
s
| exception Not_found ->
"-Ofast -march=native -funroll-loops -ffast-math"
let devflags =
match Sys.getenv "EIGENCPP_DIAGNOSTIC" with
| s -> "-Wall -Wno-invalid-partial-specialization -Wno-extern-c-compat -Wno-c++11-long-long -Wno-ignored-attributes "^s
| exception Not_found -> "-w -Wno-invalid-partial-specialization"
let () = Printf.ksprintf Jbuild_plugin.V1.send {|
(include_subdirs unqualified)
(foreign_library
(archive_name eigen_cpp_stubs)
(language cxx)
(names eigen_tensor eigen_dsmat eigen_spmat)
(include_dirs lib lib/unsupported)
(flags
:standard
-fPIC
-ansi
-pedantic
-O3
-std=c++11
-lstdc++
%s
%s
)
)
|} devflags optflags