Bug 8573 - cblink doesn't handle @ arguments
Summary: cblink doesn't handle @ arguments
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Pierre Ossman
URL: https://git.cendio.se/thinlinc/cenbui...
Keywords: adaha_tester, prosaic
Depends on:
Blocks: 8576
  Show dependency treegraph
 
Reported: 2025-04-16 10:41 CEST by Pierre Ossman
Modified: 2025-04-28 15:54 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2025-04-16 10:41:10 CEST
gcc supports arguments prefixed with @. Those specify a filename where more arguments should be read.

This is popularly used by CMake to specify what to link. I.e. the stuff that cblink is most interested in. So cblink needs to be able to handle those files.
Comment 4 Pierre Ossman cendio 2025-04-25 13:28:26 CEST
Tested in bug 8576, which now links without stray dependencies.
Comment 5 Adam Halim cendio 2025-04-28 12:16:50 CEST Comment hidden (obsolete)
Comment 6 Adam Halim cendio 2025-04-28 15:54:46 CEST
Tested compiling a small program using the @file option and can confirm that it works as expected. 

The file opts contains "-Wall":
> cbrun x86_64 cblink -ar cc @opts test.c
> test.c: In function 'main':
> test.c:2:7: warning: unused variable 'a' [-Wunused-variable]
>    int a;

Note You need to log in before you can comment on or make changes to this bug.