Hello,
I was trying to create a custom sublime-build for clang-omp
on Mac OS X.
It seems that the custom build works if I use a single string for parameter cmd, such as:
{
"cmd" : ["clang-omp++ -fopenmp ${file_name} -o ${file_base_name} && ${file_path}/${file_base_name}"],
"shell" : true,
"selector" : "source.c++",
"path" : "/usr/local/bin/:$PATH",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)"
}
but fails when I separate this string into an array of strings, such as:
{
"cmd" : ["clang-omp++", "-fopenmp", "${file_name}", "-o ${file_base_name}", "&&", "${file_path}/${file_base_name}"],
"shell" : true,
"selector" : "source.c++",
"path" : "/usr/local/bin/:$PATH",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)"
}
I have used “control + `” to call-up console, and both methods looks the same in console:
Running clang-omp++ -fopenmp HelloThreads.cpp -o HelloThreads && /<path-to-src-folder>/HelloThreads Running clang-omp++ -fopenmp HelloThreads.cpp -o HelloThreads && /<path-to-src-folder>/HelloThreads
Are there any differences between using a single string and an array of strings for parameter cmd?
Thanks,