Fixing requirements for external binary compilation from Nim.
This commit is contained in:
parent
f365b3529e
commit
a4c77629ff
@ -62,13 +62,12 @@ MiniDocs class >> installYamlToJson [
|
|||||||
self yamlToJsonBinary exists ifTrue: [ ^ MiniDocs appFolder ].
|
self yamlToJsonBinary exists ifTrue: [ ^ MiniDocs appFolder ].
|
||||||
Nimble
|
Nimble
|
||||||
install: 'yaml';
|
install: 'yaml';
|
||||||
install: 'json';
|
|
||||||
install: 'commandeer'.
|
install: 'commandeer'.
|
||||||
OSSUnixSubprocess new
|
OSSUnixSubprocess new
|
||||||
command: 'nim';
|
command: 'nim';
|
||||||
arguments: {'c'. self yamlToJsonSourceCode fullName};
|
arguments: {'c'. self yamlToJsonSourceCode fullName};
|
||||||
runAndWaitOnExitDo: [ :process :outString |
|
runAndWaitOnExitDo: [ :process :outString |
|
||||||
(self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveToPageTitled: MiniDocs appFolder asFileReference.
|
(self yamlToJsonSourceCode parent / self yamlToJsonSourceCode basenameWithoutExtension) moveTo: MiniDocs appFolder asFileReference.
|
||||||
^ MiniDocs appFolder ]
|
^ MiniDocs appFolder ]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -25,7 +25,15 @@ Nimble class >> install: packageName [
|
|||||||
arguments: {'install'.
|
arguments: {'install'.
|
||||||
packageName};
|
packageName};
|
||||||
redirectStdout;
|
redirectStdout;
|
||||||
runAndWaitOnExitDo: [ :process :outString | ^ outString ]
|
redirectStderr;
|
||||||
|
runAndWaitOnExitDo: [ :process :outString :errString |
|
||||||
|
process isSuccess
|
||||||
|
ifTrue: [ Transcript show: 'Command exited correctly with output: ', outString. ]
|
||||||
|
ifFalse: [
|
||||||
|
^ 'Command exit with error status: ', process exitStatusInterpreter printString, String cr,
|
||||||
|
'Stderr contents: ', errString.
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
Loading…
Reference in New Issue
Block a user