Skip to content

Commit df12983

Browse files
authored
[flang] build fix (#121032)
Place floating point environment calls under '#ifdef __USE_GNU'.
1 parent 4cb2a51 commit df12983

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/runtime/exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ uint32_t RTNAME(MapException)(uint32_t excepts) {
8484
// Check if the processor has the ability to control whether to halt or
8585
// continue execution when a given exception is raised.
8686
bool RTNAME(SupportHalting)([[maybe_unused]] uint32_t except) {
87-
#if (defined(__arm__) || defined(__aarch64__)) && !defined(_WIN32)
87+
#ifdef __USE_GNU
8888
except = RTNAME(MapException)(except);
8989
int currentSet = fegetexcept(), flipSet, ok;
9090
if (currentSet & except) {

0 commit comments

Comments
 (0)