Skip to content

Commit

Permalink
fix compilation on new versions of MacOS (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisdaniil authored Sep 30, 2024
1 parent bbb7d15 commit 9fab476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ On MacOS 10.14, to compile `mac_listener`, run:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
```

On newer versions this file doesn't exist. But it still should work just fine as long as you have xcode installed.

## Usage

Add `file_system` to the `deps` of your mix.exs
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule FileSystem.MixProject do
ldflags = System.get_env("LDFLAGS", "")

cmd =
"clang #{cflags} #{ldflags} -framework CoreFoundation -framework CoreServices -Wno-deprecated-declarations #{source} -o #{target}"
"xcrun -r clang #{cflags} #{ldflags} -framework CoreFoundation -framework CoreServices -Wno-deprecated-declarations #{source} -o #{target}"

if Mix.shell().cmd(cmd) > 0 do
Logger.error(
Expand Down

0 comments on commit 9fab476

Please sign in to comment.