jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Make flags in prerequisites setup script

Open ruben-ayrapetyan opened this issue 11 years ago • 4 comments

Hello.

Currently, prerequisites.sh uses 'make -j' to build cppcheck and vera++. This can be too resource consuming.

To give control about the make options, we can pass "-j" flag in make command line only if it is passed to make instance, calling the script (MAKEFLAGS environment variable, created by make, can be used for this).

ruben-ayrapetyan avatar May 06 '15 11:05 ruben-ayrapetyan

By the way. Why do we have to build vera++ by ourselves? Is there a problem using vera++ distribution package?

ILyoan avatar May 06 '15 16:05 ILyoan

Actually, may be manual build of vera++ is unnecessary.

There is also distribution package for cppcheck in Ubuntu. The issue with it are changes between versions. Some false positives can appear in new versions, making precommit pass in one environment, and not - in another. Because of this, we've fixed cppcheck version by building necessary version manually, with other prerequisites.

Maybe, there are no similar cross-version issues with vera++. In the case, we could use distribution package.

ruben-ayrapetyan avatar May 06 '15 16:05 ruben-ayrapetyan

I think the manual build of vera++ is totally unnecessary. This should be optional or at least should be checked if it is already installed or not.

LaszloLango avatar May 07 '15 06:05 LaszloLango

In Ubuntu (from trusty to vivi) the vera++ package has the 1.2.1 version and the same version is in the prerequisites script.

galpeter avatar May 12 '15 11:05 galpeter