-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
Added sse2neon for arm compilation.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/") | |
|
||
include (FindSSE) | ||
include (GNUInstallDirs) | ||
# include (ExternalProject) # There must be a nicer way to include this | ||
# include (sse2neon) | ||
find_package(OpenMP) | ||
|
||
set(MAJOR_VERSION 1) | ||
|
@@ -30,6 +32,10 @@ if(NOT WIN32) | |
add_definitions(-fPIC) | ||
endif() | ||
|
||
if(APPLE) | ||
add_definitions(-march=armv8-a+fp+simd+crypto+crc) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
meneguzzi
Contributor
|
||
endif(APPLE) | ||
|
||
### ORC is not used in any active code at the moment ### | ||
# I tried it with 0.4.14 | ||
# 0.4.10 did not work (not all opcode implemented) | ||
|
1 comment
on commit cbe3d5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I merged the new PR.
@meneguzzi This broke compilation of universal (
CMAKE_OSX_ARCHITECTURES='arm64;x86_64'
) on my M1 build machine for daily Shotcut builds. See https://github.com/mltframework/shotcut/actions/runs/7447186625The error is
error: unknown target CPU 'armv8-a+fp+simd+crypto+crc'
From cmake output
-- The C compiler identification is AppleClang 14.0.0.14000029