[llvm-dev] Naming clash: -DCLS=n and CLS in code
U.Mutlu via llvm-dev
llvm-dev at lists.llvm.org
Tue Jun 19 14:35:01 PDT 2018
Bruce Hoult via llvm-dev wrote on 06/19/2018 09:41 PM:
> If you're trying to add new functionality, why not do it like
> gcc -DLEVEL1_DCACHE_LINESIZE=$(getconf LEVEL1_DCACHE_LINESIZE)
> More obvious and much less chance of clashing with something else.
> The preprocessor is a very blunt hammer, doesn't know C++, doesn't respect any
> kind of scope rules. Avoid potential clashes.
Yeah, but the problem still would persist. Guess why?... :-)
More information about the llvm-dev