don't normalize-path in add-library
							parent
							
								
									785e3bcfd0
								
							
						
					
					
						commit
						63e06589bd
					
				| 
						 | 
					@ -18,5 +18,4 @@ TUPLE: library path abi dll ;
 | 
				
			||||||
    library dup [ dll>> ] when ;
 | 
					    library dup [ dll>> ] when ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
: add-library ( name path abi -- )
 | 
					: add-library ( name path abi -- )
 | 
				
			||||||
    [ dup [ normalize-path ] when ] dip
 | 
					 | 
				
			||||||
    <library> swap libraries get set-at ;
 | 
					    <library> swap libraries get set-at ;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,18 +1,19 @@
 | 
				
			||||||
IN: compiler.tests
 | 
					 | 
				
			||||||
USING: alien alien.c-types alien.syntax compiler kernel
 | 
					USING: alien alien.c-types alien.syntax compiler kernel
 | 
				
			||||||
namespaces namespaces tools.test sequences stack-checker
 | 
					namespaces namespaces tools.test sequences stack-checker
 | 
				
			||||||
stack-checker.errors words arrays parser quotations
 | 
					stack-checker.errors words arrays parser quotations
 | 
				
			||||||
continuations effects namespaces.private io io.streams.string
 | 
					continuations effects namespaces.private io io.streams.string
 | 
				
			||||||
memory system threads tools.test math accessors combinators
 | 
					memory system threads tools.test math accessors combinators
 | 
				
			||||||
specialized-arrays.float alien.libraries ;
 | 
					specialized-arrays.float alien.libraries ;
 | 
				
			||||||
 | 
					IN: compiler.tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<<
 | 
					<<
 | 
				
			||||||
: libfactor-ffi-tests-path ( -- string )
 | 
					: libfactor-ffi-tests-path ( -- string )
 | 
				
			||||||
 | 
					    "resource:" normalize-path
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        { [ os winnt? ]  [ "resource:libfactor-ffi-test.dll" ] }
 | 
					        { [ os winnt? ]  [ "libfactor-ffi-test.dll" ] }
 | 
				
			||||||
        { [ os macosx? ] [ "resource:libfactor-ffi-test.dylib" ] }
 | 
					        { [ os macosx? ] [ "libfactor-ffi-test.dylib" ] }
 | 
				
			||||||
        { [ os unix?  ]  [ "resource:libfactor-ffi-test.so" ] }
 | 
					        { [ os unix?  ]  [ "libfactor-ffi-test.so" ] }
 | 
				
			||||||
    } cond ;
 | 
					    } cond append-path ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"f-cdecl" libfactor-ffi-tests-path "cdecl" add-library
 | 
					"f-cdecl" libfactor-ffi-tests-path "cdecl" add-library
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue