Ivan Pribec
Ivan Pribec
I certainly agree we don't want fpm interacting with other build systems aimed to be use independently from fpm. My proposition/question was only related to the way Cargo automatically looks...
> This might require a new table of `build-dependencies` at some point, which are usable in the build script. This only seems to make sense for build scripts which are...
That is a good way to look at it. I imagine in a one way setup, the script invoked would be responsible to place all the necessary executable files, module...
> In terms of specification I think that we should avoid hard-coding the detection of specific file-extensions or build systems and simply have an array of strings to be invoked...
One warning/suggestion I think would be useful is in dealing with optional arguments. A safe style of programming dictates keyword arguments should be used with optional dummy variable (the issue...
> I think we actually want an overflow and wrap around here since we are using a signed integer to store a byte sequence. Doesn't wrap around fit into the...
The integer overflow error at runtime seems to be triggered by the _debug_ NAG compiler flag https://github.com/fortran-lang/fpm/blob/bb449174631be989fae08532de31e94bac5c5ac3/src/fpm_compiler.f90#L179 which also includes the [option](https://www.nag.com/nagware/np/r70_doc/nagfor.html#OPTIONS): > intovf | (check for integer overflow),
The first error looks mysterious. Is the error `test/cli_test/cli_test.f90: In function ‘main_IP_parse’:` occuring at compile time or when running the test?
A nice summary of the wraparound behavior in practice, and the flags needed to allow it, are given in the [stdlib_hash](https://stdlib.fortran-lang.org/page/specs/stdlib_hash_procedures.html) module specs (thanks to @wclodius2): > In order to...
Following some of the resources given below, * [FNV Hash](http://www.isthe.com/chongo/tech/comp/fnv/) * [`fnv.c`](https://github.com/haipome/fnv/blob/master/fnv.c#L140) I've tried replacing multiplication with a sum of left-shifts at [src/fpm_strings.f90#L198](https://github.com/fortran-lang/fpm/blob/bb449174631be989fae08532de31e94bac5c5ac3/src/fpm_strings.f90#L198): ```fortran !> Hash a character(*) string of...