forked from OctaForge/libostd
make run_tests.py respect environment vars
parent
5192ea4977
commit
59e925b997
|
@ -1,19 +1,19 @@
|
||||||
from sys import stdout, exit
|
from sys import stdout, exit
|
||||||
from os import listdir, remove, name as osname
|
from os import listdir, remove, name as osname, getenv
|
||||||
from os.path import splitext, join as joinp
|
from os.path import splitext, join as joinp
|
||||||
import subprocess as sp
|
import subprocess as sp
|
||||||
|
|
||||||
# configuration - you can modify this
|
# configuration - you can modify this
|
||||||
|
|
||||||
COMPILER = "c++"
|
COMPILER = getenv("CXX", "c++")
|
||||||
CXXFLAGS = [
|
CXXFLAGS = [
|
||||||
"-std=c++14",
|
"-std=c++14",
|
||||||
"-Wall", "-Wextra",
|
"-Wall", "-Wextra",
|
||||||
"-Wno-missing-braces", # clang false positive
|
"-Wno-missing-braces", # clang false positive
|
||||||
"-I."
|
"-I."
|
||||||
]
|
] + getenv("CXXFLAGS", "").split()
|
||||||
COLORS = (osname != "nt")
|
COLORS = (osname != "nt")
|
||||||
TESTDIR = "tests"
|
TESTDIR = getenv("TESTDIR", "tests")
|
||||||
SRCEXT = ".cc"
|
SRCEXT = ".cc"
|
||||||
|
|
||||||
# don't modify past these lines
|
# don't modify past these lines
|
||||||
|
|
Loading…
Reference in New Issue