← index #12097PR #10383
Off-topic · high · value 2.984
QUERY · ISSUE

Unix port using gcc with clang flags

openby brettcannonopened 2023-07-26updated 2023-07-27
bug

I'm trying to build the Unix port, but I keep getting gcc: error: unrecognized command-line option ‘-Qunused-arguments’.

Looking at online docs, it looks like clang has that option, but gcc does not.

I have CC set to clang(both globally and when I run make, i.e., CC=clang make), but the Makefile seems to insist on using gcc and so I can't work around this by trying to use the appropriate compiler. https://github.com/micropython/micropython/blob/master/ports/unix/README.md also explicitly calls out gcc as the compiler to use.

CANDIDATE · PULL REQUEST

ports/unix: Disable the shared library of libffi

mergedby juanfra684opened 2022-12-31updated 2023-01-19
port-unix

Hi, I was trying to build an static copy of MicroPython with zig as crosscompiler and I saw a problem building the shared library in the bundled copy of libffi. MicroPython doesn't need the shared library, so I disabled it in the configure.

The change was tested with gcc and clang and both pass the tests.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied