Skip to content

Add support for libraries specifying linker options for the application in LIB_COMPILER_FLAGS.#215

Open
shuchitak wants to merge 1 commit into
xmos:developfrom
shuchitak:lib_linker_flags
Open

Add support for libraries specifying linker options for the application in LIB_COMPILER_FLAGS.#215
shuchitak wants to merge 1 commit into
xmos:developfrom
shuchitak:lib_linker_flags

Conversation

@shuchitak

Copy link
Copy Markdown

Note that specifying LIB_COMPILER_FLAGS is only supported for libraries registered as XMOS_REGISTER_MODULE() and not for static libraries that are registered as XMOS_REGISTER_STATIC_LIB()

@xross xross left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful addition :) can we add to the API docs?

@shuchitak

shuchitak commented Feb 27, 2026

Copy link
Copy Markdown
Author

Useful addition :) can we add to the API docs?

oops, forgot about documentation. Will do.

@shuchitak
shuchitak force-pushed the lib_linker_flags branch 4 times, most recently from f5c7f72 to cac246e Compare February 27, 2026 20:21
@shuchitak
shuchitak requested a review from xross February 27, 2026 20:25
…on in LIB_COMPILER_FLAGS.

Note that specifying LIB_COMPILER_FLAGS is only supported for libraries registered as XMOS_REGISTER_MODULE() and not for static libraries that are registered as  XMOS_REGISTER_STATIC_LIB()
@xross

xross commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

isn't the comment here and the commit comment incorrect? It says LIB_COMPILER_FLAGS but should be LIB_LINKER_FLAGS?

@xross

xross commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

I think a good test to add would be two links specifying the same flag i.e. a clash. This may need handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants