File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,10 @@ const ObjectiveC = {
149
149
"File Based" : {
150
150
command : "bash" ,
151
151
args ( { filepath } ) {
152
+ const tempOutFile = GrammarUtils . createTempPath ( "objc-" , ".out" )
152
153
return [
153
154
"-c" ,
154
- `xcrun clang ${ options } -fcolor-diagnostics -framework Cocoa '${ filepath } ' -o /tmp/objc-c.out && /tmp/objc-c.out ` ,
155
+ `xcrun clang ${ options } -fcolor-diagnostics -framework Cocoa '${ filepath } ' -o ${ tempOutFile } && ${ tempOutFile } ` ,
155
156
]
156
157
} ,
157
158
} ,
@@ -161,9 +162,10 @@ const ObjectiveCpp = {
161
162
"File Based" : {
162
163
command : "bash" ,
163
164
args ( { filepath } ) {
165
+ const tempOutFile = GrammarUtils . createTempPath ( "objcpp-" , ".out" )
164
166
return [
165
167
"-c" ,
166
- `xcrun clang++ -Wc++11-extensions ${ options } -fcolor-diagnostics -include iostream -framework Cocoa '${ filepath } ' -o /tmp/objc-cpp.out && /tmp/objc-cpp.out ` ,
168
+ `xcrun clang++ -Wc++11-extensions ${ options } -fcolor-diagnostics -include iostream -framework Cocoa '${ filepath } ' -o ${ tempOutFile } && ${ tempOutFile } ` ,
167
169
]
168
170
} ,
169
171
} ,
You can’t perform that action at this time.
0 commit comments