Skip to content

Commit

Permalink
Finish the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Victorious3 committed Nov 30, 2022
1 parent 1f138c1 commit c25fa2f
Show file tree
Hide file tree
Showing 42 changed files with 2,353 additions and 4,217 deletions.
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def release():
build([])

print("Second compilation step")
subprocess.check_call([exe_file("bin/princess2"), "-d", "-Isrc", "--buildfolder=build", "--outfile", exe_file("bin/princess3"), "src/main.pr"])
subprocess.check_call([exe_file("bin/princess2"), "--no-incremental", "-d", "-Isrc", "--buildfolder=build", "--outfile", exe_file("bin/princess3"), "src/main.pr"])

print("Creating archive")
FOLDER.mkdir(exist_ok=True)
Expand Down Expand Up @@ -74,7 +74,7 @@ def release():
shutil.rmtree(FOLDER)

def testrunner(extra):
args = [exe_file("bin/princess"), "--outfile", exe_file("bin/testrunner"), "src/testrunner.pr"]
args = [exe_file("bin/princess"), "--no-incremental", "--outfile", exe_file("bin/testrunner"), "src/testrunner.pr"]
if sys.platform == "win32":
args += WIN_ARGS
subprocess.check_call(args + extra)
Expand Down Expand Up @@ -108,7 +108,7 @@ def download():
Path(archive).unlink()

def build(extra):
args = [exe_file("bin/princess"), "-d", "-Isrc", "--buildfolder=build", "--outfile", exe_file("bin/princess2"), "src/main.pr"]
args = [exe_file("bin/princess"), "--no-incremental", "-d", "-Isrc", "--buildfolder=build", "--outfile", exe_file("bin/princess2"), "src/main.pr"]
if sys.platform == "win32":
args += WIN_ARGS
subprocess.check_call(args + extra)
Expand Down
4 changes: 2 additions & 2 deletions src/compiler.pr
Original file line number Diff line number Diff line change
Expand Up @@ -8498,10 +8498,10 @@ export def compile(state: &State, is_main: bool, no_cleanup: bool = false) {
var globals: &Value = null
// Create compilation unit and file
if toolchain::debug_sym {
var dirname = util::dirname(state.module.filename)
var dirname = dirname(state.module.filename)
if length(dirname) == 0 { dirname = "." }
let abspath = absolute_path(dirname)
let file = util::basename(state.module.filename)
let file = basename(state.module.filename)

let dvalues1 = allocate_ref(DebugParam, 2)
dvalues1[0] = {
Expand Down
Loading

0 comments on commit c25fa2f

Please sign in to comment.