#!/usr/bin/env dub
/+ dub.sdl:
name "android-research-load-probe"
platforms "linux"
dflags "-betterC"
targetPath "build"
buildType "checked" {
buildOptions "optimize" "inline" "debugInfo"
}
+/
/**
E3's dependency-free dlopen payload. Build as a shared library for Android;
the default host executable just tests the exported function.
See ../index.md#current-target-experiments.
*/
module (module) load_probeE3's dependency-free dlopen payload. Build as a shared library for Android;
the default host executable just tests the exported function.
See ../index.md#current-target-experiments.
load_probe;
/// A symbol to keep the shared-library payload nonempty.
extern(C) export int int load_probe.sparkles_load_probe() pure nothrow @nogc @safeA symbol to keep the shared-library payload nonempty.
sparkles_load_probe() @safe pure nothrow @nogc => 42;
version (LoadProbeLibraryLoadProbeLibrary) {} else
extern(C) int int load_probe.main() pure nothrow @nogc @safemain() @safe pure nothrow @nogc => int load_probe.sparkles_load_probe() pure nothrow @nogc @safeA symbol to keep the shared-library payload nonempty.
sparkles_load_probe() == 42 ? 0 : 1;