diff --git a/.vscode/launch.json b/.vscode/launch.json index 42991dc..5133de2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/main.exe", - "args": ["<", "${workspaceFolder}/data/test_mat.txt"], + "args": ["2", "2", "2", "2", "<", "${workspaceFolder}/data/2222_inq.txt"], "stopAtEntry": true, "cwd": "${fileDirname}", "environment": [], diff --git a/.vscode/piped_run.sh b/.vscode/piped_run.sh deleted file mode 100755 index edaf80c..0000000 --- a/.vscode/piped_run.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -path=$(realpath “${BASH_SOURCE:-$0}”) -cat "$path/../data/test_mat.txt" | "$path/../main.exe" diff --git a/.vscode/tasks.json b/.vscode/tasks.json index a4457f1..7408edd 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,7 +3,7 @@ "tasks": [ { "label": "compile", - "command": "python make.py compile", + "command": "python make.py link", "type": "shell" } ] diff --git a/make.py b/make.py index 4f5ede8..931c9af 100644 --- a/make.py +++ b/make.py @@ -24,6 +24,7 @@ ROOT = os.path.dirname(os.path.realpath(__file__)) if 'RELEASE' in os.environ: COMPILE_FLAGS[COMPILE_FLAGS.index('-O0')] = '-O2' + COMPILE_FLAGS.append('-DRELEASE') def as_object(source_path): """Takes a source path and returns the path to the corresponding compiled object."""