pragma {.compile.} C sources are not recompiled when optimization changes #257

exhu opened this Issue Nov 21, 2012 · 3 comments


None yet

4 participants

exhu commented Nov 21, 2012

Changing optimization options (--opt:size e.g., -d:release) recompiles only nimrod sources while it uses old object files for C sources specified with {.compile: "mybinding.c"}.

Araq commented Dec 5, 2012

Well the compiler stores the compilation command at the beginning of the generated C file. Obviously it can't do that for other C files. So fixing this would require the compiler to persist the compilation options somewhere else.

zah commented Dec 6, 2012

I'm working on incremental compilation in my compiler-as-a-service branch. I'll take the opportunity to fix this as well. I can't provide a definitive ETA yet, but the CAAS branch should be merged in the next few weeks.

@zah zah was assigned Dec 6, 2012

Fixed then? @zah

@Araq Araq added a commit that closed this issue Mar 18, 2013
@Araq Araq fixes #257 98d6027
@Araq Araq closed this in 98d6027 Mar 18, 2013
@reactormonk reactormonk pushed a commit to reactormonk/nim that referenced this issue Apr 7, 2014
@Araq Araq fixes #257 139f315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment