Olympus-HPC / proteus

Programmable JIT Compilation and Optimization for C/C++ using LLVM
Apache License 2.0
6 stars 0 forks source link

Fix storage cache persistance across build configs #37

Open johnbowen42 opened 2 days ago

johnbowen42 commented 2 days ago

Currently, the storage cache will persist between different build configurations. For example, if a developer compiles in debug mode, then switches to release mode, the cache will hold onto and emit the debug code.

ggeorgakoudis commented 1 day ago

It's more complicated. The storage cache will store the code compiled with O3 (that's what we do by default), either in LLVM IR or object format. We need to define what should be the expected functionality. Also, what does debug mode mean in terms of optimization flags and debug info? Are you referring to cmake build types?

We probably need to take into account static compilation flags for compliance