๐Ÿ“ฆ gopikrishna000 / templates-latest

๐Ÿ“„ custom.sublime-build ยท 15 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15{
    "shell_cmd": "wsl g++ -Wall -D LOCAL -std=c++20 `wslpath '${file}'` -o `wslpath '${file_path}'`/${file_base_name}; timeout -s SIGKILL 2 `wslpath '${file_path}'`/${file_base_name} ",
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.c++",

    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "wsl g++ -Wall -D LOCAL -std=c++20 `wslpath '${file}'` -o `wslpath '${file_path}'`/${file_base_name}; timeout -s SIGKILL 2 `wslpath '${file_path}'`/${file_base_name} "
        }
    ]
}