How can I use different compiler / linker c parameters for each file using armature?

I have rebar to create an erlang module that uses two different c files.

I set the c compilation options in mine rebar.configusing (for example):

{port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra"}]}.

Is it possible to set different parameters for each source c file? I would like for each of them to have different compiler and linker flags.

If not, what is the most common alternative / workaround? I assume that creating a Makefile and moving the c-compilation there will work, it just seems embarrassing to do when the reinforcing grill takes care of it so well.

+3
source share
1 answer

: pre_hooks post_hooks . , script, , , .

NIF SHA-2. . rebar.config c_src/config.sh

+2

All Articles