Skip to content
GitLab
Explore
Sign in
Andreas Klöckner
loopy
Compare revisions
5f098faa86c1545951b93bbfafcdee9a4b06ed4d to 46cc984486821875b70697a155b173a71a61398d
Commits on Source (3)
c_execution: remove unused source_suffix argument to GCCToolchain
· f0f549a2
Alexandru Fikl
authored
Mar 01, 2024
and
Andreas Klöckner
committed
Mar 01, 2024
f0f549a2
c_execution: add optional arguments to GCCToolchain
· b0f32988
Alexandru Fikl
authored
Mar 01, 2024
and
Andreas Klöckner
committed
Mar 01, 2024
b0f32988
test: remove test of GCCtoolchain
· 46cc9844
Alexandru Fikl
authored
Mar 01, 2024
and
Andreas Klöckner
committed
Mar 01, 2024
46cc9844
Hide whitespace changes
Inline
Side-by-side
loopy/target/c/c_execution.py
View file @
46cc9844
...
...
@@ -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
...
...
test/test_c_execution.py
View file @
46cc9844
...
...
@@ -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
)
...
...