halfo

C++ sublime build

Jul 11th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "cmd": ["g++", "-Wall", "-time", "${file}", "-o", "${file_path}/${file_base_name}"],
  3.     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  4.     "working_dir": "${file_path}",
  5.     "selector": "source.c, source.c++",
  6.     "shell": true,
  7.     "variants":
  8.     [
  9.         {
  10.             "name": "Run",
  11.             "cmd": ["g++ -Wall -time ${file} -o ${file_path}/${file_base_name}.exe && start cmd /K ${file_path}/${file_base_name}.exe"]
  12.         }
  13.     ]
  14. }
Advertisement
Add Comment
Please, Sign In to add comment