bin/config: add option for getting build definitions
This commit is contained in:
parent
27c4c59d19
commit
733e479498
3 changed files with 16 additions and 0 deletions
|
@ -25,6 +25,7 @@ auto configMap()
|
|||
m["--version"] = CNORXZ::Config::version;
|
||||
m["--commit"] = CNORXZ::Config::commit;
|
||||
m["--flags"] = CNORXZ::Config::flags;
|
||||
m["--definitions"] = CNORXZ::Config::definitions;
|
||||
return m;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ namespace CNORXZ
|
|||
|
||||
/** return compile flags */
|
||||
String flags();
|
||||
|
||||
/** return compile definitions */
|
||||
String definitions();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,5 +31,17 @@ namespace CNORXZ
|
|||
{
|
||||
return String(CXX_FLAGS);
|
||||
}
|
||||
|
||||
String definitions()
|
||||
{
|
||||
String o;
|
||||
#ifdef HAVE_CEREAL
|
||||
o += "HAVE_CEREAL ";
|
||||
#endif
|
||||
#ifdef CXZ_HAVE_AVX
|
||||
o += "CXZ_HAVE_AVX ";
|
||||
#endif
|
||||
return o;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue