Skip to content

Commit

Permalink
Merge pull request #23 from owlbarn/quieter-build
Browse files Browse the repository at this point in the history
Quieter build
  • Loading branch information
mseri authored Dec 14, 2019
2 parents 8ff8020 + 33f04e3 commit 5096deb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: c
sudo: false
services:
- docker
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
script: bash -ex ./.travis-docker.sh
env:
global:
- PINS="eigen.dev:."
- PACKAGE="eigen"
matrix:
- DISTRO="debian-stable" OCAML_VERSION="4.07"
- DISTRO="fedora" OCAML_VERSION="4.07"
- DISTRO="centos" OCAML_VERSION="4.07"
- DISTRO="debian-stable" OCAML_VERSION="4.08"
- DISTRO="fedora" OCAML_VERSION="4.08"
- DISTRO="centos" OCAML_VERSION="4.08"
- DISTRO="debian-stable" OCAML_VERSION="4.09"
- DISTRO="fedora" OCAML_VERSION="4.09"
- DISTRO="centos" OCAML_VERSION="4.09"

matrix:
fast_finish: true
3 changes: 1 addition & 2 deletions bindings/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
(executable
(name ffi_eigen_stubgen)
(libraries ctypes.stubs)
)
(libraries ctypes.stubs))
15 changes: 8 additions & 7 deletions eigen_cpp/dune
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ let optflags =
| exception Not_found ->
"-Ofast -march=native -mfpmath=sse -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)
Expand All @@ -23,18 +28,14 @@ let () = Printf.ksprintf Jbuild_plugin.V1.send {|
:standard
-fPIC
-ansi
-pedantic
-O3
-std=c++11
-pedantic
-Wall
-Wno-invalid-partial-specialization
-Wno-extern-c-compat
-Wno-c++11-long-long
-Wno-ignored-attributes
%s
%s
)
)
(c_library_flags :standard -lstdc++)
)

|} optflags
|} devflags optflags

0 comments on commit 5096deb

Please sign in to comment.