Newer
Older
barebox / scripts / gcc-64bitptr.sh
@Ahmad Fatoum Ahmad Fatoum on 3 Jun 2020 172 bytes sandbox: define CONFIG_64BIT as appropriate
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only

cat << "END" | $@ -x c - -c -o /dev/null
int main(void)
{
	return sizeof(struct { int:-!(sizeof(void *) == 8); });
}
END