Skip to content

Commit

Permalink
Merge pull request #12 from mockingbirdnest/Makefile
Browse files Browse the repository at this point in the history
Clang compatibility
  • Loading branch information
pleroy authored Oct 26, 2024
2 parents 7b7998d + 29a4c62 commit fec523f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ UNAME_S := $(shell uname -s)

CXX := clang++
COMPILER_OPTIONS := \
-std=c++1z -stdlib=libc++ -O3 -g \
-std=c++20 -stdlib=libc++ -O3 -g \
-fPIC -fexceptions -ferror-limit=1 -fno-omit-frame-pointer \
-Wall -Wpedantic \
-Wall -Wpedantic -Wno-deprecated -Wno-gnu-anonymous-struct \
-DNDEBUG -Iinclude -Ideps/abseil-cpp

LIBRARY_TRANSLATION_UNITS := \
Expand Down
2 changes: 2 additions & 0 deletions src/binary64/cos/cos.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ SOFTWARE.

#pragma STDC FENV_ACCESS ON

#if defined(_MSC_VER)
#ifndef __builtin_clzl
#define __builtin_clzl(x) __lzcnt64(x)
#endif
Expand All @@ -61,6 +62,7 @@ SOFTWARE.
#ifndef __builtin_floor
#define __builtin_floor(x) std::floor(x)
#endif
#endif

/******************** code copied from dint.h and pow.[ch] *******************/

Expand Down
2 changes: 2 additions & 0 deletions src/binary64/sin/sin.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ SOFTWARE.

#pragma STDC FENV_ACCESS ON

#if defined(_MSC_VER)
#ifndef __builtin_clzl
#define __builtin_clzl(x) __lzcnt64(x)
#endif
Expand All @@ -61,6 +62,7 @@ SOFTWARE.
#ifndef __builtin_floor
#define __builtin_floor(x) std::floor(x)
#endif
#endif

/******************** code copied from dint.h and pow.[ch] *******************/

Expand Down

0 comments on commit fec523f

Please sign in to comment.