jdelauney / SIMD-VectorMath-UnitTest

For testing asm SIMD (SSE/SSE 2/SSE 3/SSE 4.x / AVX /AVX 2) vector math library (2f, 4f, matrix, quaternion...) with Lazarus and FreePascal Compiler
Mozilla Public License 2.0
8 stars 0 forks source link

MacOS support #3

Closed neurolabusc closed 6 years ago

neurolabusc commented 6 years ago

With a few changes to {$IFDEF LINUX} to {$IFDEF UNIX} and changes in the project options, I was able to get this project to compile on MacOS using the Cocoa Widgetset (to get 64 bit support), however it did generate an exception when running. As a feature request, MacOS support would be handy.

dicepd commented 6 years ago

hmm where are the ifdef Linux? I thought we had settled on using Unix as I have been testing earlier versions on FreeBSD. I don't have a Mac but in the past if it works on FreeBSD it generally works for a Mac. Will get out the FreeBSD box and have a look.

Found it in GLZSystem will convert all to Unix as a first stab.

neurolabusc commented 6 years ago

I changed 9 instances of GLZSystem.pas from {$IFDEF LINUX} to {$IFDEF UNIX}

dicepd commented 6 years ago

Ok checked in try what is there now!

dicepd commented 6 years ago

No further comments on this closed

neurolabusc commented 6 years ago

The current code requires one modification of GLZSystem.pas to compile on MacOS. Specifically, on line 183 the text {$IFDEF UNIX} must be reverted back to {$IFDEF LINUX}
With this change, the "Native_CONFIG_1" build passes all tests when compiled as 64-bit targeting the Cocoa widgetset.

dicepd commented 6 years ago

Done. thank you.