Skip to content
Snippets Groups Projects
Commit 6a60630d authored by Mike Sullivan's avatar Mike Sullivan Committed by Natanael Copa
Browse files

testing/ocaml-cppo allow textrels and fix asr

parent 2fd76197
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,15 @@ pkgdesc="C-style preprocessor for OCaml"
url="https://github.com/mjambon/cppo"
# ocaml is not avail for x86, armhf, s390x
# test fails on ppc64le
arch="all !x86 !armhf !s390x !ppc64le"
arch="all !x86 !armhf !s390x"
license="BSD-3-Clause"
makedepends="dune ocaml ocamlbuild ocaml-findlib opam"
options="textrels"
subpackages="$pkgname-dev $pkgname-ocamlbuild"
source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz
ppc64le-asr.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
......@@ -63,4 +67,5 @@ dev() {
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="89c6df66d597d929be7532ad82f0206b028bdbd79a0b4b39451bce3fa5bd63a80dce931d575f69bd7066de829347498c736657dfe9610b20700a652b9b542a4d ocaml-cppo-1.6.4.tar.gz"
sha512sums="89c6df66d597d929be7532ad82f0206b028bdbd79a0b4b39451bce3fa5bd63a80dce931d575f69bd7066de829347498c736657dfe9610b20700a652b9b542a4d ocaml-cppo-1.6.4.tar.gz
718b0bfb4c0106e153bde9cf9a52f79858f113b3a8ffd6c9f887c2b2fec16dd330e952786e322a3532200e34ae533828d9d98c3fa784910cd3f92fec56250533 ppc64le-asr.patch"
--- a/src/cppo_parser.mly
+++ b/src/cppo_parser.mly
@@ -252,7 +252,7 @@
| aexpr MOD aexpr { `Mod ($2, $1, $3) }
| aexpr LSL aexpr { `Lsl ($1, $3) }
| aexpr LSR aexpr { `Lsr ($1, $3) }
- | aexpr ASR aexpr { `Lsr ($1, $3) }
+ | aexpr ASR aexpr { `Asr ($1, $3) }
| aexpr LAND aexpr { `Land ($1, $3) }
| aexpr LOR aexpr { `Lor ($1, $3) }
| aexpr LXOR aexpr { `Lxor ($1, $3) }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment