summaryrefslogtreecommitdiffstats
path: root/tests/freestanding.c
diff options
context:
space:
mode:
authorTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-11-09 14:42:03 (GMT)
committerTakayuki Matsuoka <t-mat@users.noreply.github.com>2022-11-09 14:42:03 (GMT)
commit08f1483b0a4e685c2211f3ca24a9e505502dc333 (patch)
treea964fc84d6e205b82227c2478a7aa4be878b642d /tests/freestanding.c
parent214bfb325bd4db112b73859912b919aa35e12d61 (diff)
downloadlz4-08f1483b0a4e685c2211f3ca24a9e505502dc333.zip
lz4-08f1483b0a4e685c2211f3ca24a9e505502dc333.tar.gz
lz4-08f1483b0a4e685c2211f3ca24a9e505502dc333.tar.bz2
Add environment check for freestanding test
Freestanding test is intended to run on only Linux x86_64 platform. Because it uses Linux x86_64 syscall directly to avoid any dependency to the standard library. This changeset adds platform checking code to tests/Makefile to avoid unintended error in non-Linux x86_64 platforms. This changeset resolves issue #1186
Diffstat (limited to 'tests/freestanding.c')
-rw-r--r--tests/freestanding.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/freestanding.c b/tests/freestanding.c
index ceff4c5..6109aa7 100644
--- a/tests/freestanding.c
+++ b/tests/freestanding.c
@@ -30,7 +30,6 @@
#if !defined(__x86_64__) || !defined(__linux__)
-EXTERN_C void _start(void) { }
int main(int argc, char** argv) { return 0; }
#else