Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherdjerred committed Feb 17, 2024
1 parent c4fb377 commit dedd176
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ aarch64-apple-darwin22-gfortran hello.f90 -o hello
## for darwin x86_64
x86_64-apple-darwin22-gfortran hello.f90 -o hello

# Using Zig

# C targeting darwin arm64 (change aarch64 -> x86_64 to target amd64)
# Compile using Zig
## C targeting darwin arm64 (change aarch64 -> x86_64 to target amd64)
zig cc \
-target aarch64-macos \
--sysroot=/sdk \
Expand All @@ -73,7 +72,7 @@ zig cc \
-framework CoreFoundation \
-o hello hello.c

# C++ targeting darwin arm64(change aarch64 -> x86_64 to target amd64)
## C++ targeting darwin arm64(change aarch64 -> x86_64 to target amd64)
zig c++ \
-target aarch64-macos \
--sysroot=/sdk -I/sdk/usr/include \
Expand All @@ -84,7 +83,7 @@ zig c++ \
-framework CoreFoundation \
-o hello hello.cpp

# Rust targeting darwin arm64 (change aarch64 -> x86_64 to target amd64)
## Rust targeting darwin arm64 (change aarch64 -> x86_64 to target amd64)
export CC=zig-cc-aarch64-macos
cd rust && cargo build --target aarch64-apple-darwin
```
Expand Down

0 comments on commit dedd176

Please sign in to comment.