GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BLD: use `-ftrapping-math` with Clang on macOS · rgommers/numpy@928cd74

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • meson.build
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎meson.build‎

Copy file name to clipboardExpand all lines: meson.build
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ endif
5252
add_project_arguments(
5353
cc.get_supported_arguments( '-fno-strict-aliasing'), language : 'c'
5454
)
55+
#
56+
# Clang defaults to a non-strict floating error point model, but we need strict
57+
# behavior. `-ftrapping-math` is equivalent to `-ffp-exception-behavior=strict`.
58+
# Note that this is only supported on macOS arm64 as of XCode 14.3
59+
if cc.get_id() == 'clang'
60+
add_project_arguments(
61+
cc.get_supported_arguments('-ftrapping-math'), language: ['c', 'cpp'],
62+
)
63+
endif
5564

5665
# Generate version number. Note that this will not (yet) update the version
5766
# number seen by pip or reflected in wheel filenames. See

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.