Skip to content

Commit

Permalink
Drop support for 32-bit inodes on macOS
Browse files Browse the repository at this point in the history
These were removed from Druntime back in 2015.
  • Loading branch information
CyberShadow committed Mar 29, 2021
1 parent d127c3c commit a26b628
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 33 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,3 @@ jobs:
run: |
dub build
dub --root=example build
- name: Test (64-bit inodes)
if: runner.os == 'macOS'
run: |
dub build -c dfuse-osx-64
dub --root=example build --override-config=dfuse/dfuse-osx-64
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dfuse comes with a [Dub](https://dub.pm/) configuration file, making it usable a

Alternatively, it is usable with common D recursive compilation tools (`dmd -i` / `rdmd` / `rund`).

### Linux
### Dub
In order to compile dfuse on Linux:
```Shell
$ dub build -b release
Expand All @@ -79,26 +79,6 @@ $ dub build -b debug
to build a debug version
```

### MacOS
MacOS supports two inode sizes which are both supported by OSXfuse, however when
compiling dfuse you have to be aware which OSXfuse should be linked.

By default dfuse is trying to build with a 32bit inode size and link against
osxfuse_i32 which is part of OSXfuse for compatibility. Please note that your
library itself will still be 64bit on a 64bit system. The setting only affects
the size of the inode.

To build just run
```Shell
$ dub build
```

If you want to compile with 64bit inodes you need a at least DMD, Druntime,
Phobos in version 2.066:
```Shell
$ dub build -c dfuse-osx-64
```

## How dfuse works
dfuse is a simple D wrapper. It exposes a lowelevel interface to the libfuse C
functions in c/fuse/fuse.d. The lowlevel interface preserves C types.
Expand Down
8 changes: 1 addition & 7 deletions dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,5 @@ targetType "library"

configuration "default" {
platforms "osx" "linux"
libs "fuse" platform="linux"
libs "osxfuse_i32" platform="osx"
}
configuration "dfuse-osx-64" {
platforms "osx"
libs "osxfuse"
versions "DARWIN_USE_64_BIT_INODE"
libs "fuse"
}

0 comments on commit a26b628

Please sign in to comment.