From d267ed57314a8bfa7efaf46e444c593f9d45bbc6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 17 Jan 2025 12:35:12 -0500 Subject: build: Feature-detect #pragma nounroll support --- build/has/pragma-nounroll.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 build/has/pragma-nounroll.c (limited to 'build/has') diff --git a/build/has/pragma-nounroll.c b/build/has/pragma-nounroll.c new file mode 100644 index 0000000..2bdae14 --- /dev/null +++ b/build/has/pragma-nounroll.c @@ -0,0 +1,10 @@ +// Copyright © Tavian Barnes +// SPDX-License-Identifier: 0BSD + +/// -Werror + +int main(void) { +#pragma nounroll + for (int i = 0; i < 100; ++i); + return 0; +} -- cgit v1.2.3