(zilch lang rust resolver): fix feature detection for some proc-macros

This commit is contained in:
puck 2025-03-02 22:14:12 +00:00
parent c6364fa6aa
commit f610d937b3

View file

@ -476,7 +476,7 @@
; Collect the necessary bits, and build the build script. ; Collect the necessary bits, and build the build script.
(let*-values (let*-values
(((build-script) (cdr (resolved-package-build-data-rlib (resolved-package-build-data (resolved-package-build-script resolved))))) (((build-script) (cdr (resolved-package-build-data-rlib (resolved-package-build-data (resolved-package-build-script resolved)))))
((rewritten-features) (map (lambda (feature) (cons (string-map upcase-underscore (string-append "CARGO_FEATURE_" feature)) "")) (resolved-package-enabled-features resolved))) ((rewritten-features) (map (lambda (feature) (cons (string-map upcase-underscore (string-append "CARGO_FEATURE_" feature)) "1")) (resolved-package-enabled-features resolved)))
((runner-outdir runner-outpath) ((runner-outdir runner-outpath)
(call-runner build-script crate-root (call-runner build-script crate-root
#~( #~(