File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ var targetPluginUsages = [Target.PluginUsage]()
13
13
var platformCxxSettings : [ CXXSetting ] = [ ]
14
14
var platformSwiftSettings : [ SwiftSetting ] = [ . swiftLanguageMode( . v5) ]
15
15
16
+ let YoctoSysRoot = ProcessInfo . processInfo. environment [ " RECIPE_SYSROOT " ]
17
+
16
18
func tryGuessSwiftRoot( ) -> String {
17
19
let task = Process ( )
18
20
task. executableURL = URL ( fileURLWithPath: " /bin/sh " )
@@ -29,7 +31,7 @@ func tryGuessSwiftRoot() -> String {
29
31
}
30
32
}
31
33
32
- let SwiftRoot = tryGuessSwiftRoot ( )
34
+ let SwiftRoot = YoctoSysRoot ?? tryGuessSwiftRoot ( )
33
35
var FlutterPlatform : String
34
36
var FlutterUnsafeLinkerFlags : [ String ] = [ ]
35
37
@@ -239,7 +241,7 @@ let FlutterELinuxBackend = FlutterELinuxBackendType.defaultBackend
239
241
let CxxIncludeDirs : [ String ] = [
240
242
" \( SwiftRoot) /usr/include " ,
241
243
" \( SwiftRoot) /usr/lib/swift " ,
242
- " /usr/include/drm " ,
244
+ " \( YoctoSysRoot ?? " " ) /usr/include/drm " ,
243
245
]
244
246
245
247
let CxxIncludeFlags = CxxIncludeDirs . flatMap { [ " -I " , $0] }
You can’t perform that action at this time.
0 commit comments