File: Build-Link-Time-Optimization.sh

package info (click to toggle)
ray 2.3.1-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,008 kB
  • sloc: cpp: 49,973; sh: 339; makefile: 281; python: 168
file content (15 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash


mpicxx \
-Wall -std=c++98 -Os -march=native -flto -fwhole-program \
 -D CONFIG_HAVE_LIBZ -D CONFIG_HAVE_LIBBZ2 -lz -lbz2 \
 -flto-report \
 -D CONFIG_MAXKMERLENGTH=32  \
 -D CONFIG_RAY_VERSION=\"x.y.z\" -D CONFIG_RAYPLATFORM_VERSION=\"x.y.z\" \
 -I. -I RayPlatform  \
 $(find code/|grep .cpp$;find RayPlatform/|grep .cpp$) \
 -o Ray

# remove even more stuff from the executable
strip Ray