ucb-sejits/ctree — pull request #13 by leonardt (2014-04-11 16:17:49+00:00)
Title: Specializer specific config

Allows a specializer to define a .ctree.cfg target and command. Useful when having multiple targets i.e. OCL vs OMP. When creating the CFile, can specify which CC and CFLAGS should be used (including openmp files and using intel clang, vs normal clang and flags).

Example use cases:

```python
if self.backend == StencilOmpTransformer:
file = CFile("control", compile_command='OMP_CC', compile_flags='OMP_CFLAGS', config_target='stencil')
```

.ctree.cfg

```
[stencil]
OMP_CC = /usr/local/llvm-omp/bin/clang
OMP_CFLAGS = -march=native -O3 -fopenmp -I/opt/intel/composerxe/include
OCL_CC = clang
OCL_CFLAGS = -O3
```

@mbdriscoll I'm not convinced this is the best way to go about this. We should probably add a try catch and have it default to jit, cc, cflags if the user hasn't create a .ctree.cfg. Perhaps we should use methods instead of setting this information at construction time? (i.e. file.set_cc('OMP_CC'))