Skip to content

Fails to build liberasurecode when CC=gcc #7

@koba-e964

Description

@koba-e964

On MacOS, if gcc is installed, CC=gcc cargo build or simply cargo build fails with the error log like below:
https://gist.github.com/koba-e964/c9ff5ab39b0ef510d0a893af54f4c0a4

Probably this is because of adding an option -Wno-error=address-of-packed-member here, which is valid in clang but not in gcc.

if [ "$(uname)" == "Darwin" ]; then
CFLAGS="$CFLAGS -Wno-error=address-of-packed-member"
fi

Fixing this should be easy. Should I do this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions