Skip to content

Flang does not support -fdata-sections and -ffunction-sections flags #163550

@arrowd

Description

@arrowd

libxsmm tries to call the Fortran compiler with these flags: https://github.com/libxsmm/libxsmm/blob/eea23a9942932d51ca9e06f24711275577663c25/Makefile.inc#L1991

This yields the following error with Flang:

flang-21: error: unknown argument '-fdata-sections'; did you mean '-Xclang -fdata-sections'?
flang-21: error: unknown argument '-ffunction-sections'; did you mean '-Xclang -ffunction-sections'?

It seems that these flags can be easily supported by proxying them to some underlying layer?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions