Skip to content

Commit

Permalink
Made depended on library not have a hardcoded version.
Browse files Browse the repository at this point in the history
  • Loading branch information
endobson committed Nov 25, 2012
1 parent 636302f commit a430eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rkt
Expand Up @@ -5,10 +5,12 @@
(define launcher "/usr/bin/env")
(define compiler '("clang"))
(define os (system-type 'os))
(match-define (list version) (llvm-config "--version"))

(define shared-library-flags
(case os
((unix) '("-shared"))
((macosx) '("-dynamiclib" "-lLLVM-3.1" "-lstdc++"))))
((macosx) `("-dynamiclib" ,(format "-lLLVM-~a" version) "-lstdc++"))))
(define architecture-flags
(case os
((unix) '("-m32"))
Expand Down

0 comments on commit a430eff

Please sign in to comment.