store/[org.clojure/clojure "1.8.0"] clj::clojure.core/compile

Official Documentation

Add notes
Arities
==================================================
   [lib]

Docstring
==================================================
  Compiles the namespace named by the symbol lib into a set of
  classfiles. The source for the lib must be in a proper
  classpath-relative directory. The output files will go into the
  directory specified by *compile-path*, and that directory too must
  be in the classpath.

Source

(defn compile
  "Compiles the namespace named by the symbol lib into a set of
  classfiles. The source for the lib must be in a proper
  classpath-relative directory. The output files will go into the
  directory specified by *compile-path*, and that directory too must
  be in the classpath."
  {:added "1.0"}
  [lib]
  (binding [*compile-files* true]
    (load-one lib true true))
  lib)

Example 1

Edit
(compile (symbol "clojure.java.io"))
;; => clojure.java.io

(compile (symbol "unexistent.namespace"))
;; => FileNotFoundException Could not locate unexistent/namespace__init.class or unexistent/namespace.clj on classpath:   clojure.lang.RT.load (RT.java:432)

Uses on crossclj