gnu: janet: Prepare for cross-compilation.
* gnu/packages/lisp.scm (janet)[arguments]: Use 'cc-for-target'. Replace custom 'check' phase by 'test-target' parameter.
This commit is contained in:
		
							parent
							
								
									e9bd9a2d58
								
							
						
					
					
						commit
						90e92befbc
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -1172,14 +1172,11 @@ including a built-in database engine and a GUI system.") | |||
|        (list | ||||
|          (string-append "DESTDIR=" (assoc-ref %outputs "out")) | ||||
|          (string-append "PREFIX=") | ||||
|          (string-append "CC=" (assoc-ref %build-inputs "gcc") | ||||
|                         "/bin/gcc")) | ||||
|          (string-append "CC=" ,(cc-for-target))) | ||||
|        #:test-target "test" | ||||
|        #:phases | ||||
|        (modify-phases %standard-phases | ||||
|          (delete 'configure) | ||||
|          (replace 'check | ||||
|            (lambda _ | ||||
|              (invoke "make" "test")))))) | ||||
|          (delete 'configure)))) | ||||
|     (home-page "https://janet-lang.org/") | ||||
|     (synopsis "Functional, imperative and embeddable programming language") | ||||
|     (description | ||||
|  |  | |||
		Reference in a new issue