mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
Tests: Add Clang pragma for turning off optimizations
Clang does not accept `GCC optimize("O0")`, so it fails to build the system with it.
This commit is contained in:
parent
7fb41d6250
commit
5f2f460cc8
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O0")
|
||||
#ifdef __clang__
|
||||
# pragma clang optimize off
|
||||
#else
|
||||
# pragma GCC optimize("O0")
|
||||
#endif
|
||||
|
||||
#include <LibTest/TestCase.h>
|
||||
|
||||
#include <float.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue