Skip to content

Commit 9fab476

Browse files
fix compilation on new versions of MacOS (#100)
1 parent bbb7d15 commit 9fab476

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ On MacOS 10.14, to compile `mac_listener`, run:
2424
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
2525
```
2626

27+
On newer versions this file doesn't exist. But it still should work just fine as long as you have xcode installed.
28+
2729
## Usage
2830

2931
Add `file_system` to the `deps` of your mix.exs

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ defmodule FileSystem.MixProject do
6262
ldflags = System.get_env("LDFLAGS", "")
6363

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

6767
if Mix.shell().cmd(cmd) > 0 do
6868
Logger.error(

0 commit comments

Comments
 (0)