Skip to content

Android compatibility #342

@Fritiofhedstrom

Description

@Fritiofhedstrom

I'd like to use Bastion for my android project, but stumbled upon a problem.
When compiling with --target aarch64-linux-android then this code in src/placement.rs generates the stub only.

#[cfg(target_os = "linux")]
#[inline]
fn get_core_ids_helper() -> Option<Vec<CoreId>> {
    linux::get_core_ids()
}

What i would like is this:
#[cfg(any(target_os = "linux", target_os="android"))]
Not sure how many other places that are affected by this. There is a way to manually set the --cfg target_os in rustc, but it feels more cumbersome and not the correct way.

Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.

Describe the solution you'd like
Please describe the desired behavior.

Describe alternatives you've considered
Please describe alternative solutions or features you have considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions