Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 67befc4

Browse files
authored
Fix script so it assumes some default values for host_os, host_cpu vars. (#204)
1 parent 262d978 commit 67befc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/dart/create_updated_flutter_deps.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def Lookup(self, var_name):
2525
"""Implements the Var syntax."""
2626
if var_name in self._local_scope.get("vars", {}):
2727
return self._local_scope["vars"][var_name]
28+
if var_name == 'host_os':
29+
return 'linux' # assume some default value
30+
if var_name == 'host_cpu':
31+
return 'x64' # assume some default value
2832
raise Exception("Var is not defined: %s" % var_name)
2933

3034

0 commit comments

Comments
 (0)