Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add arm64 arch to support Apple M1 #88

Merged
merged 1 commit into from May 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified bin/fsevent_watch
Binary file not shown.
2 changes: 2 additions & 0 deletions ext/fsevent_watch/defines.h
Expand Up @@ -22,6 +22,8 @@
#define TARGET_CPU "i386"
#elif defined(__x86_64__)
#define TARGET_CPU "x86_64"
#elif defined(__arm64__)
#define TARGET_CPU "arm64"
#else
#define TARGET_CPU "unknown"
#endif
Expand Down
5 changes: 5 additions & 0 deletions ext/rakefile.rb
Expand Up @@ -99,6 +99,11 @@
$ARCHFLAGS = '-arch i386'
end

desc 'set build arch to arm64'
task :arm64 do
$ARCHFLAGS = '-arch arm64'
end

task :setup_env => [:set_build_type, :sw_vers, :get_sdk_info]

directory $obj_dir.to_s
Expand Down