Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
Signed-off-by: Julia DeMille <me@jdemille.com>
  • Loading branch information
judemille committed Feb 28, 2024
1 parent bcae553 commit a8954c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: cargo build -F XPLM400 --verbose
run: cargo build -F XPLM400 -Fstub-linux --verbose
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ This crate includes the experimental ability to generate and link library stubs
Linux. This is desirable, so that plugins can be built without having to leave
undefined symbols, a point at which other dependencies may be left dangling.

The feature can be enabled with the feature flag `stub-linux`.

This should work seamlessly on the upcoming X-Plane 12.1.0, however on previous
versions, some changes will be necessary to make this work:

Expand Down
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ const ALLOWED_TARGETS_TEXT: &str = r"Supported targets for xplane-sys are:
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
- aarch64-apple-darwin
- x86_64-unknown-linux-gnu
";
- x86_64-unknown-linux-gnu";

fn handle_platform(crate_path: &Path) {
let target = env::var("TARGET").unwrap();
Expand Down

0 comments on commit a8954c4

Please sign in to comment.