Skip to content

Commit

Permalink
Fix mkdir call in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Feb 25, 2022
1 parent 7a3ff14 commit 63c6ca5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion smalltalksrc/VMMaker/AbstractComposedImageAccess.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ AbstractComposedImageAccess class >> declareCVarsIn: aCCodeGenerator [
AbstractComposedImageAccess >> createImageDirectory: imageFileName [

self
cCode: [ self mkdir: imageFileName _: 0777 ]
cCode: [
self
cppIf: ((self defined: #_WIN32) or: [(self defined: #_WIN64)])
ifTrue: [ self mkdir: imageFileName ]
ifFalse: [ self mkdir: imageFileName _: 0777 ] ]
inSmalltalk: [ imageFileName asFileReference ensureCreateDirectory ]
]

Expand Down

0 comments on commit 63c6ca5

Please sign in to comment.