mirror of https://github.com/commaai/rednose.git
27 lines
501 B
Python
27 lines
501 B
Python
import os
|
|
import subprocess
|
|
|
|
arch = subprocess.check_output(["uname", "-m"], encoding='utf8').rstrip()
|
|
|
|
env = Environment(
|
|
ENV=os.environ,
|
|
CC='clang',
|
|
CXX='clang++',
|
|
CCFLAGS=[
|
|
"-g",
|
|
"-fPIC",
|
|
"-O2",
|
|
"-Werror=implicit-function-declaration",
|
|
"-Werror=incompatible-pointer-types",
|
|
"-Werror=int-conversion",
|
|
"-Werror=return-type",
|
|
"-Werror=format-extra-args",
|
|
],
|
|
CFLAGS="-std=gnu11",
|
|
CXXFLAGS="-std=c++14",
|
|
)
|
|
|
|
|
|
Export('env', 'arch')
|
|
SConscript(['SConscript'])
|