Hey! Is there a way to prepend an include path bef...
# kotlin-native
s
Hey! Is there a way to prepend an include path before the sysroot path?
Copy code
kotlin {
    androidNativeArm64 {
        compilations.named("main") {
            cinterops.register("main") {
                compilerOpts("-ID:/Apps/VulkanSDK/Include")
            }
        }
    }
}
I want to use the latest version of Vulkan headers from Vulkan SDK, but the headers from the sysroot path always get the priority:
Copy code
// This includes Vulkan 1.0 header from $HOME\.konan\dependencies\target-toolchain-2-windows-android_ndk/sysroot/usr/include\vulkan/vulkan.h
#include <vulkan/vulkan.h>
m
s
@Matt Nelson already upvoted 🙂 still, the Vulkan headers in the latest NDK are at 1.3.275. so the commonizer would exclude everything added in later revisions I ended up generating a vfsoverlay for Android targets, so that the headers from Vulkan SDK would get the priority
🙌 1