Commit c26e4466 authored by Maxime Perrotin's avatar Maxime Perrotin

Properly detect 64 bits architecures

parent f4c42589
UNAME := $(shell uname)
ARCH := $(shell getconf LONG_BIT)
CC=gcc
exec = aadl_parser
......@@ -31,7 +32,7 @@ ifeq ($(UNAME), Linux)
fi ; \
fi
endif
uname -a | grep x86_64 && EXTRAFLAG="--target=x86_64-linux" ; \
[ $(ARCH) == 64 ] && EXTRAFLAG="--target=x86_64-linux" ; \
ADA_PROJECT_PATH=`ocarina-config --prefix`/lib/gnat:$$ADA_PROJECT_PATH \
$(gnatpath)gprbuild -x -g $(exec) -p -P aadl_parser.gpr -XBUILD="debug" $$EXTRAFLAG
......
package Parser_Version is
Parser_Release : constant String :=
"3f69b3a ; Commit Date: Tue Jul 18 12:17:45 2017 ";
"f4c4258 ; Commit Date: Fri Jul 21 13:10:24 2017 ";
Ocarina_Version : constant String :=
"Ocarina 2017.x (Working Copy from r2c2360e)";
end Parser_Version;
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment