isLinuxCppModule function

bool isLinuxCppModule(
  1. File specFile
)

Returns true when the spec file uses direct C++ for Linux. A Linux-C++ module always gets a linux/src/HybridXxx.cpp starter stub created (see linkLinuxCppImplStubs) — whether it's actually USED instead of the shared src/HybridXxx.cpp is a separate, opt-in decision driven by file content (see hasCustomPlatformImpl), independent of Windows.

Implementation

bool isLinuxCppModule(File specFile) => PlatformTargetAnalyzer.fromSpec(specFile).supportsLinux;