I’m trying to write a new build system for ATS (it’s a language)
the command line should be:
patscc -tcats <file>
and I wrote the build system file as below:
{
"cmd": "patscc", "-tcats", "$file"]
}
it gave me the error
[Errno 2] No such file or directory: 'patscc'
[cmd: ['patscc', '-tcats', '/Users/shengy/Dropbox/shengy/bu_course/CS520/ats-playground/Sep-3-2015/count_ones.dats']]
[dir: /Users/shengy/Dropbox/shengy/bu_course/CS520/ats-playground/Sep-3-2015]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]
I think the build system can’t find patscc in the path(although it is in my shell’s path), so I updated the build system as below:
{
"cmd": "/usr/local/bin/patscc", "-tcats", "$file"]
}
Then the error became:
sh: patsopt: command not found
[Finished in 0.1s with exit code 1]
[cmd: ['/usr/local/bin/patscc', '-tcats', '/Users/shengy/Dropbox/shengy/bu_course/CS520/ats-playground/Sep-3-2015/count_ones.dats']]
[dir: /Users/shengy/Dropbox/shengy/bu_course/CS520/ats-playground/Sep-3-2015]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
I think patscc is calling patsopt at some point, but how can I pass that environment into the build system?