fixes to compilation toolchain

This commit is contained in:
Miguel M 2023-04-29 16:58:53 +01:00
parent 44df5472c8
commit a614b03229
4 changed files with 3 additions and 5 deletions

2
.vscode/launch.json vendored
View File

@ -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": [],

View File

@ -1,3 +0,0 @@
#!/bin/bash
path=$(realpath “${BASH_SOURCE:-$0})
cat "$path/../data/test_mat.txt" | "$path/../main.exe"

2
.vscode/tasks.json vendored
View File

@ -3,7 +3,7 @@
"tasks": [
{
"label": "compile",
"command": "python make.py compile",
"command": "python make.py link",
"type": "shell"
}
]

View File

@ -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."""