]> gitweb.factorcode.org Git - factor.git/commitdiff
don't normalize-path in add-library
authorDoug Coleman <erg@jobim.local>
Thu, 26 Mar 2009 23:56:10 +0000 (18:56 -0500)
committerDoug Coleman <erg@jobim.local>
Thu, 26 Mar 2009 23:56:10 +0000 (18:56 -0500)
basis/alien/libraries/libraries.factor
basis/compiler/tests/alien.factor

index adb9eeb1bb6a90763c09c6a01a8f189b38126ae1..3fcc15974c8ebf295a0137fd0440d50b3b38ce4c 100644 (file)
@@ -18,5 +18,4 @@ TUPLE: library path abi dll ;
     library dup [ dll>> ] when ;
 
 : add-library ( name path abi -- )
-    [ dup [ normalize-path ] when ] dip
     <library> swap libraries get set-at ;
index aa9346f78812b975438ed0e8e6468741f3595839..b26abb561ca9e3349fc62e44d7fa72692b7b2d7f 100644 (file)
@@ -1,18 +1,19 @@
-IN: compiler.tests
 USING: alien alien.c-types alien.syntax compiler kernel
 namespaces namespaces tools.test sequences stack-checker
 stack-checker.errors words arrays parser quotations
 continuations effects namespaces.private io io.streams.string
 memory system threads tools.test math accessors combinators
 specialized-arrays.float alien.libraries ;
+IN: compiler.tests
 
 <<
 : libfactor-ffi-tests-path ( -- string )
+    "resource:" normalize-path
     {
-        { [ os winnt? ]  [ "resource:libfactor-ffi-test.dll" ] }
-        { [ os macosx? ] [ "resource:libfactor-ffi-test.dylib" ] }
-        { [ os unix?  ]  [ "resource:libfactor-ffi-test.so" ] }
-    } cond ;
+        { [ os winnt? ]  [ "libfactor-ffi-test.dll" ] }
+        { [ os macosx? ] [ "libfactor-ffi-test.dylib" ] }
+        { [ os unix?  ]  [ "libfactor-ffi-test.so" ] }
+    } cond append-path ;
 
 "f-cdecl" libfactor-ffi-tests-path "cdecl" add-library