Advertisement
sleepy_coder

C++17 Build_SublimeText

Nov 20th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.16 KB | None | 0 0
  1. --updated LINUX version
  2.  
  3. {
  4.     "cmd": ["g++", " -D LOCAL -std=c++17 -w -Wall -Wextra -pedantic -Wformat=2 -Wfloat-equal -Wlogical-op -Wredundant-decls -Wconversion -Wcast-qual -Wcast-align -Wuseless-cast -Wno-shadow -Wno-unused-result -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-long-long -DLOCAL_PROJECT -g -DLOCAL_DEBUG -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC ", "$", " -pthread -O3 -o", "${file_path}/${file_base_name}"],
  5.     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  6.     "working_dir": "${file_path}",
  7.     "selector": "source.c, source.cc, source.c++, source.cxx, source.cpp",
  8.     "variants":
  9.     [
  10.         {
  11.         "name": "Run",
  12.         "cmd": ["bash", "-c", "g++ -D LOCAL -std=c++17 -w -Wall -Wextra -pedantic -Wformat=2 -Wfloat-equal -Wlogical-op -Wredundant-decls -Wconversion -Wcast-qual -Wcast-align -Wuseless-cast -Wno-shadow -Wno-unused-result -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-long-long -DLOCAL_PROJECT -g -DLOCAL_DEBUG -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC '${file}' -pthread -O3 -o '${file_path}/${file_base_name}' && gnome-terminal -- bash -c '\"${file_path}/${file_base_name}\" ; read'"]
  13.         }
  14.     ]
  15. }
  16.    
  17.    
  18.    
  19. -- normal LINUX version
  20.  
  21.  
  22. {
  23.     "cmd": ["g++", " -D LOCAL -std=c++17", "$", "-o", "${file_path}/${file_base_name}"],
  24.     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  25.     "working_dir": "${file_path}",
  26.     "selector": "source.c, source.c++, source.cxx, source.cpp",
  27.     "variants":
  28.     [
  29.         {
  30.         "name": "Run",
  31.         "cmd": ["bash", "-c", "g++ -D LOCAL -std=c++17 '${file}' -o '${file_path}/${file_base_name}' && gnome-terminal -- bash -c '\"${file_path}/${file_base_name}\" ; read'"]
  32.         }
  33.     ]
  34. }
  35.  
  36.  
  37.  
  38.  
  39.  
  40. --WINDOWS version-----------
  41.  
  42.  
  43. {
  44.     "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++17 -O3 -w -g -Wall -o \"${file_path}/${file_base_name}\"",
  45.     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
  46.     "working_dir": "${file_path}",
  47.     "selector": "source.c, source.c++, source.cpp, source.cc",
  48.    
  49.     "variants":
  50.     [
  51.         {
  52.             "name": "Run",
  53.             "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++17 -O3 -w -g -Wall -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
  54.         }
  55.     ]
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement