Skip to content
Snippets Groups Projects
  • Administrator's avatar
    e64d1d11
    Fix externals on Apple silicon · e64d1d11
    Administrator authored
    Fix NicaFemto compilation on macosx arm64.
    Remove hardcoded GSL search directory and pass the correct brew install
    directory which is now taken from the brew command.
    
    Fix KFParticle compilation on macosx arm64.
    Add patch which adds an include file which defines _mm_malloc and _mm_free.
    e64d1d11
    History
    Fix externals on Apple silicon
    Administrator authored
    Fix NicaFemto compilation on macosx arm64.
    Remove hardcoded GSL search directory and pass the correct brew install
    directory which is now taken from the brew command.
    
    Fix KFParticle compilation on macosx arm64.
    Add patch which adds an include file which defines _mm_malloc and _mm_free.
KFParticle_applem1.patch 759 B
diff --git a/KFParticle/KFPInputData.h b/KFParticle/KFPInputData.h
index 8f674f8..50f5143 100644
--- a/KFParticle/KFPInputData.h
+++ b/KFParticle/KFPInputData.h
@@ -29,6 +29,10 @@
 #include <string>
 #include <fstream>
 
+#ifdef __APPLE__
+#include <mm_malloc.h>
+#endif
+
 /** @class KFPTrackIndex
  ** @brief Helper structure to sort tracks in the KFPTrackVector object.
  ** @author  M.Zyzak, I.Kisel
diff --git a/KFParticle/KFPSimdAllocator.h b/KFParticle/KFPSimdAllocator.h
index 20a13c4..42fd493 100644
--- a/KFParticle/KFPSimdAllocator.h
+++ b/KFParticle/KFPSimdAllocator.h
@@ -22,6 +22,10 @@
 #ifndef KFPSimdAllocator_H
 #define KFPSimdAllocator_H
 
+#ifdef __APPLE__
+#include <mm_malloc.h>
+#endif
+
 #include <Vc/Vc>
 
 /** @class KFPSimdAllocator