diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-01-31 20:44:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-01-31 21:43:59 +0200 |
commit | c5b1441ede3c58f1fe92372cbb48864f9d4df6ec (patch) | |
tree | c86b771e67121fe3ff1711f403bd633c02e93ec4 /config_host/config_global.h.in | |
parent | 0e63a97066a817f3d01b40d99e3e1ed831ae3598 (diff) |
Use separate config_*.h files for BUILD and HOST when cross-compiling
We have only been lucky so far that there hasn't been any compilation errors
caused by using the HOST platform config_*.h files also for the BUILD
platform. But as more and more information found out during configury is
stored in config_*.h files, sooner or later it will be a problem.
Move config/* to config_host/*. When not cross-compiling, the config_*.h files
in config_host expanded from config_*.h.in are all there is. When
cross-compiling, the generated config_*.h files for the BUILD platform are
put into a config_build folder.
Then use config_build when building the cross_toolset and config_host
otherwise.
Change-Id: I3c28cc83866bffd696b45d00dfb68e00bc2ae538
Diffstat (limited to 'config_host/config_global.h.in')
-rw-r--r-- | config_host/config_global.h.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in new file mode 100644 index 000000000000..0f85b59c3785 --- /dev/null +++ b/config_host/config_global.h.in @@ -0,0 +1,22 @@ +/* +Global configuration file. + +Only for settings that apply to every source file and are unlikely to change often, +such as whether a certain C++11 feature is available. + +Do NOT use for settings local to some code or for settings that can change often. +Any change in this header will cause a rebuild of almost everything. + +*/ + +#ifndef CONFIG_GLOBAL_H +#define CONFIG_GLOBAL_H + +#undef HAVE_CXX11_DELETE +#undef HAVE_CXX11_OVERRIDE +#undef HAVE_GCC_BUILTIN_ATOMIC +#undef HAVE_SFINAE_ANONYMOUS_BROKEN +#undef HAVE_THREADSAFE_STATICS +#undef HAVE_SYSLOG_H + +#endif |