File tree 1 file changed +5
-6
lines changed 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -325,15 +325,14 @@ function load (code,exec)
325
325
326
326
local compile_dir = _make_path_ .. paths .dirname (filename )
327
327
-- write file to disk
328
- sys .execute (_mkdir_ .. compile_dir )
328
+ sys .execute (_mkdir_ .. ' " ' .. compile_dir .. ' " ' )
329
329
local f = io.open (_make_path_ .. filename , ' w' )
330
330
f :write (parsed )
331
331
f :close ()
332
332
333
333
-- copy any local headers to the compilation dir
334
334
for vlh in pairs (current_localheaders ) do
335
- sys .execute (' cp ' .. sys .dirname (filename ).. ' /' .. vlh .. ' ' ..
336
- compile_dir )
335
+ sys .execute (' cp "' .. sys .dirname (filename ).. ' /' .. vlh .. ' " "' .. compile_dir .. ' "' )
337
336
end
338
337
339
338
local gcc_str = _make_c_ .. _make_flags_ ..
@@ -346,10 +345,10 @@ function load (code,exec)
346
345
print (c .blue .. gcc_str .. c .none )
347
346
end
348
347
-- compile it
349
- local msgs = sys .execute (' cd ' .. compile_dir .. ' ; ' .. gcc_str )
348
+ local msgs = sys .execute (' cd " ' .. compile_dir .. ' " ; ' .. gcc_str )
350
349
if string.match (msgs ,' error' ) then
351
350
-- cleanup
352
- sys .execute (_rmdir_ .. _make_path_ .. filename )
351
+ sys .execute (_rmdir_ .. ' " ' .. _make_path_ .. filename .. ' " ' )
353
352
print (c .blue )
354
353
local debug = ' '
355
354
local itr = 1
410
409
---- ------------------------------------------------------------------
411
410
function flush ()
412
411
-- complete cleanup
413
- sys .execute (_rmdir_ .. _make_path_ )
412
+ sys .execute (_rmdir_ .. ' " ' .. _make_path_ .. ' " ' )
414
413
end
415
414
416
415
---- ------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments