Added Windows support
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-07-01 13:37:40 +02:00
parent dbc865ee67
commit 562c839835
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
37 changed files with 742 additions and 45 deletions

View file

@ -137,7 +137,12 @@ func (f *Function) Evaluate(expr *expression.Expression) (ssa.Value, error) {
return nil, errors.New(&UnknownIdentifier{Name: label}, f.File, left.Token.Position)
}
f.Dependencies.Add(function)
if function.IsExtern() {
f.Assembler.Libraries = f.Assembler.Libraries.Append(function.Package, function.Name)
} else {
f.Dependencies.Add(function)
}
v := f.AppendFunction(function.UniqueName, function.Type)
v.Source = ssa.Source(expr.Source)
return v, nil