From eebe1c123808d13010ccf2e4e473b6795e25f485 Mon Sep 17 00:00:00 2001 From: barracuda156 Date: Tue, 9 May 2023 01:39:58 +0800 Subject: [PATCH] parser_stype.h: exclude static_assert on ppc32 as well --- src/lfortran/parser/parser_stype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/lfortran/parser/parser_stype.h src/lfortran/parser/parser_stype.h index 6264007b2..b783893a4 100644 --- src/lfortran/parser/parser_stype.h +++ src/lfortran/parser/parser_stype.h @@ -93,7 +93,7 @@ static_assert(std::is_trivial::value); // Ensure the YYSTYPE size is equal to Vec, which is a required member, so // YYSTYPE has to be at least as big, but it should not be bigger, otherwise it // would reduce performance. -#ifndef HAVE_BUILD_TO_WASM +#if !defined(HAVE_BUILD_TO_WASM) && !defined(__ppc__) static_assert(sizeof(YYSTYPE) == sizeof(Vec)); #endif } // namespace LCompilers::LFortran