Skip to content

Commit 094217f

Browse files
vdonaldsongithub-actions[bot]
authored andcommitted
Automerge: [flang] build fix (#121032)
Place floating point environment calls under '#ifdef __USE_GNU'.
2 parents fa4dbed + df12983 commit 094217f

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)