• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -ex
4
5# Set of features to build & test.
6FEATURE_SETS=(
7  # std
8  "std"
9  "std approx bytemuck mint rand serde debug-glam-assert"
10  "std scalar-math approx bytemuck mint rand serde debug-glam-assert"
11  "std cuda"
12  "std scalar-math cuda"
13  # no_std
14  "libm"
15  "libm scalar-math approx bytemuck mint rand serde debug-glam-assert"
16)
17
18rustc --version
19
20for features in "${FEATURE_SETS[@]}"
21do
22  :
23  cargo build --tests --no-default-features --features="$features"
24  cargo test --no-default-features --features="$features"
25done
26
27RUSTFLAGS='-C target-feature=+fma' cargo check
28
29cargo check -p glam-no_std