Skip to content
Commits on Source (3)
......@@ -280,16 +280,17 @@ class CCompiler:
# default args
self.toolchain = GCCToolchain(
cc="gcc",
ld="ld",
cflags="-std=c99 -O3 -fPIC".split(),
ldflags="-shared".split(),
libraries=[],
library_dirs=[],
defines=[],
undefines=[],
source_suffix="c",
so_ext=".so",
o_ext=".o",
include_dirs=[])
include_dirs=[],
features=set())
if toolchain is None:
# copy in all differing values
......
......@@ -336,11 +336,6 @@ def test_missing_compilers():
# the default (non-guessed) toolchain!
__test(eval_tester, ExecutableCTarget, compiler=ccomp)
# and test that we will fail if we remove a required attribute
del ccomp.toolchain.undefines
with pytest.raises(AttributeError):
__test(eval_tester, ExecutableCTarget, compiler=ccomp)
# next test that some made up compiler can be specified
ccomp = CCompiler(cc="foo")
assert isinstance(ccomp.toolchain, GCCToolchain)
......