File: compile_clang

package info (click to toggle)
knights 18.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,544 kB
  • sloc: cpp: 6,594; xml: 742; sh: 20; makefile: 7
file content (12 lines) | stat: -rwxr-xr-x 402 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if ! [ -d build_clang ]; then
	mkdir build_clang
fi

cd build_clang

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

cmake .. -DCMAKE_BUILD_TYPE=DebugFull -DCMAKE_CXX_FLAGS="-D_GNU_SOURCE -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align -Wunreachable-code -fno-omit-frame-pointer -fstack-protector -fno-exceptions -fsanitize=address -fPIE" -DCMAKE_INSTALL_PREFIX=/usr && make -j 2