Use compile scripts in makefile + add bytecomp step to native comp script
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
parent
4a75cd350c
commit
52e1254001
@ -1,11 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm ./**/*.elc
|
||||||
|
rm *.elc
|
||||||
|
|
||||||
for file in ./*.el; do
|
for file in ./*.el; do
|
||||||
echo 'Compiling '"$file"' ...'
|
echo 'Compiling '"$file"' ...'
|
||||||
cask emacs -batch -L . --eval '(setq native-compile-error-on-warn t)' -f batch-native-compile "$file" || break
|
cask emacs -batch -L . --eval '(progn '"(require 'comp)"' (setq byte-compile-error-on-warn t native-compile-target-directory (car native-comp-eln-load-path)) (nreverse native-comp-eln-load-path))' -f batch-byte+native-compile "$file" || break
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in ./**/*.el; do
|
for file in ./**/*.el; do
|
||||||
echo 'Compiling '"$file"' ...'
|
echo 'Compiling '"$file"' ...'
|
||||||
cask emacs -batch -L . --eval '(setq byte-compile-error-on-warn t)' -f batch-native-compile "$file" || break
|
cask emacs -batch -L . --eval '(progn '"(require 'comp)"' (setq byte-compile-error-on-warn t native-compile-target-directory (car native-comp-eln-load-path)) (nreverse native-comp-eln-load-path))' -f batch-byte+native-compile "$file" || break
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -z $NO_REMOVE_ELC ]]; then
|
||||||
|
rm ./**/*.elc
|
||||||
|
rm *.elc
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue