On 06/27/11 18:42, nathan binkert wrote: >> I'd love a cleaner, less-obfuscated solution to this. Can someone >> describe how it's done differently now and how we might be able to fix it? >> Can we generate a single debug flags file instead of one for each flag? > Going back to a single file is not really an option. As Korey said, > you should check out the old thread. We should probably add some > documentation somewhere that explains this. We could also probably > try to do some sort of #if !defined(FLAGNAME) > #error explain what's wrong and that you have to #include to get the flag > #endif > > I'm not able to do this right now though. > > Nate > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev
I haven't been able to figure out a way #if (or any other preprocessor shenanigans) would work since preprocessor directives aren't recognized in macros (according to the internet) so you can't have an #error in there, much less the check that would decide whether or not to use it. Gabe _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
