fixes to compilation toolchain
This commit is contained in:
parent
44df5472c8
commit
a614b03229
|
@ -9,7 +9,7 @@
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/main.exe",
|
"program": "${workspaceFolder}/main.exe",
|
||||||
"args": ["<", "${workspaceFolder}/data/test_mat.txt"],
|
"args": ["2", "2", "2", "2", "<", "${workspaceFolder}/data/2222_inq.txt"],
|
||||||
"stopAtEntry": true,
|
"stopAtEntry": true,
|
||||||
"cwd": "${fileDirname}",
|
"cwd": "${fileDirname}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
path=$(realpath “${BASH_SOURCE:-$0}”)
|
|
||||||
cat "$path/../data/test_mat.txt" | "$path/../main.exe"
|
|
|
@ -3,7 +3,7 @@
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "compile",
|
"label": "compile",
|
||||||
"command": "python make.py compile",
|
"command": "python make.py link",
|
||||||
"type": "shell"
|
"type": "shell"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
1
make.py
1
make.py
|
@ -24,6 +24,7 @@ ROOT = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
if 'RELEASE' in os.environ:
|
if 'RELEASE' in os.environ:
|
||||||
COMPILE_FLAGS[COMPILE_FLAGS.index('-O0')] = '-O2'
|
COMPILE_FLAGS[COMPILE_FLAGS.index('-O0')] = '-O2'
|
||||||
|
COMPILE_FLAGS.append('-DRELEASE')
|
||||||
|
|
||||||
def as_object(source_path):
|
def as_object(source_path):
|
||||||
"""Takes a source path and returns the path to the corresponding compiled object."""
|
"""Takes a source path and returns the path to the corresponding compiled object."""
|
||||||
|
|
Loading…
Reference in New Issue