summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-25 16:03:08 +0300
committerTom Rini <trini@konsulko.com>2021-10-08 22:53:26 +0300
commitc45b7920db21c8e0be89b15ea034ff3e9edb8e1d (patch)
tree16e7f2e2bc75af8340a7a670ba1bf921952a10cc /include/compiler.h
parent67bc59df05331eaac56cd0a00219d1386130aee2 (diff)
downloadu-boot-c45b7920db21c8e0be89b15ea034ff3e9edb8e1d.tar.xz
compiler: Add a comment to host_build()
This function should have a comment explaining what it does. Add one. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/compiler.h b/include/compiler.h
index 27b9843497..67e52050b1 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -151,6 +151,11 @@ typedef unsigned long int uintptr_t;
#define MEM_SUPPORT_64BIT_DATA 0
#endif
+/**
+ * host_build() - check if we are building for the host
+ *
+ * @return true if building for the host, false if for a target
+ */
static inline bool host_build(void) {
#ifdef USE_HOSTCC
return true;