News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Is there a way to pass arguments to ar (static library)

Started by mushakk, June 18, 2013, 06:30:41 PM

Previous topic - Next topic

mushakk

I'm wondering is there is a way to pass arguments to the "ar" command, in the same way we can pass arguments to the linker.

Thanks in advance!

oBFusCATed

No, in the project options. You have to modify the compiler's commands in the advanced settings of the compiler.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

mushakk

Then it can't be "per project"  :(

Do you know if there is some plan to do this in the future?

MortenMacFly

Quote from: mushakk on June 18, 2013, 07:12:00 PM
Do you know if there is some plan to do this in the future?
You should first start with providing a use-case for this. You are the first asking for this feature since C::B is alive and kicking.

As a "work-around" you could just make a copy of a compiler, adjust the settings in the copied compiler and then use this for the projects where you need specific parameters. This leaves all other projects using the "default" compiler as-is.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]