Skip to content

Commit

Permalink
Fix windows build fail, use nicer style for callgraph-dot, cleanup bo…
Browse files Browse the repository at this point in the history
…otstrap script
  • Loading branch information
CloakerSmoker committed Jun 22, 2024
1 parent c177c7b commit dcc78a8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Binary file modified build/linux_compiler.elf
Binary file not shown.
Binary file modified build/windows_compiler.exe
Binary file not shown.
3 changes: 3 additions & 0 deletions src/compiler/Parser/ASTVisitor.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ struct ASTVisitor {
this->OnFunction(ImplementationMethod)
}
}
else if (Target->IsImported) {
; No destinations to visit
}
else if !(Target->HasFullDefinition) {
Target~>Context->Error("Function is declared but never defined")
}
Expand Down
2 changes: 2 additions & 0 deletions src/compiler/Parser/CallGraph.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ class CallGraph derives INew {

define void DumpAllDot() {
Print("digraph G {\n")
Print("\toverlap = false;\n")
Print("\tsplines = true;\n")

i32 Count := this->Functions->Count()

Expand Down
6 changes: 4 additions & 2 deletions tools/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def use_compiler(new):
if args.release:
print('Building for release')

compile_command_format += ' ' + ' '.join(sys.argv[2:])
compile_command_format += ' ' #+ ' '.join(sys.argv[2:])

safe_compiler = path_join(bin_dir, f'{running_on.lower()}_compiler.{platform_extension}')

Expand Down Expand Up @@ -142,7 +142,9 @@ def use_compiler(new):
for platform, extension in all_platforms:
output = path_join(bin_dir, f'{platform}_new_compiler.{extension}')
use_compiler(safe_compiler)
command = compile_command_format.format(output) + ' --elf --debug --' + platform
command = compile_command_format.format(output) + ' --debug --' + platform

#print(command)

result = subprocess.run(command, cwd=cwd, shell=True, capture_output=True)
stderr_text = result.stderr.decode('UTF-8')
Expand Down

0 comments on commit dcc78a8

Please sign in to comment.