Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --updated LINUX version
- {
- "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}"],
- "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
- "working_dir": "${file_path}",
- "selector": "source.c, source.cc, source.c++, source.cxx, source.cpp",
- "variants":
- [
- {
- "name": "Run",
- "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'"]
- }
- ]
- }
- -- normal LINUX version
- {
- "cmd": ["g++", " -D LOCAL -std=c++17", "$", "-o", "${file_path}/${file_base_name}"],
- "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
- "working_dir": "${file_path}",
- "selector": "source.c, source.c++, source.cxx, source.cpp",
- "variants":
- [
- {
- "name": "Run",
- "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'"]
- }
- ]
- }
- --WINDOWS version-----------
- {
- "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++17 -O3 -w -g -Wall -o \"${file_path}/${file_base_name}\"",
- "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
- "working_dir": "${file_path}",
- "selector": "source.c, source.c++, source.cpp, source.cc",
- "variants":
- [
- {
- "name": "Run",
- "shell_cmd": "g++ -D LOCAL \"${file}\" -std=c++17 -O3 -w -g -Wall -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\""
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement