e9886ace22
We currently fail to build on a non-multilib x86_64 target. We print a helpful error, but it's nicer to allow the build to succeed. Fix it and improve cross-compilation support by detecting architecture support directly and building only the relevant tests. Signed-off-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
19 lines
245 B
C
19 lines
245 B
C
/*
|
|
* Trivial program to check that we have a valid 32-bit build environment.
|
|
* Copyright (c) 2015 Andy Lutomirski
|
|
* GPL v2
|
|
*/
|
|
|
|
#ifndef __i386__
|
|
# error wrong architecture
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
printf("\n");
|
|
|
|
return 0;
|
|
}
|