[CLJS-592] Clojurescript compiler cannot be AOT compiled Created: 19/Sep/13 Updated: 04/Feb/14 Resolved: 04/Feb/14
With Clojurescript 0.0-1859:
|Comment by David Nolen [ 05/Oct/13 2:41 PM ]|
Is there any more information about what exactly is required or expected? Or hints about what needs to be done to resolve this issue? Thanks!
|Comment by Ambrose Bonnaire-Sergeant [ 04/Feb/14 9:02 AM ]|
The root of this issue seems to be the call to `import-macros` at the top of cljs.core.
Under AOT compilation, the macros are imported as regular functions. This seems to be due to a weird property under AOT where attaching metadata to a var def must be done with alter-meta!, rather than by attaching metadata to the second argument of `def`.
This is a telling symptom:
The patch adds a redundant call to `alter-meta!`.
Behaviour before patch (https://github.com/clojure/clojurescript/commit/070b677a2192912d4f9e933f34c19055b571d101):
|Comment by David Nolen [ 04/Feb/14 9:08 AM ]|