Skip to content

Commit

Permalink
define TARGET_OS_OSX if TARGET_OS_MAC is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
RSchwan committed Aug 3, 2023
1 parent cffa428 commit 98bafb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interfaces/python/src/instruction_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

#include <pybind11/pybind11.h>

// building for conda-forge, TARGET_OS_OSX is not properly set, i.e., macOS is not correctly detected
#if defined(TARGET_OS_MAC)
#define TARGET_OS_OSX 1
#endif

#if defined(CPU_FEATURES_AVAILABLE)
#include "cpu_features_macros.h"
#endif
Expand Down

0 comments on commit 98bafb5

Please sign in to comment.