User forums > Using Code::Blocks

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

(1/1)

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.

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?

--- End quote ---
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.

Navigation

[0] Message Index

Go to full version