From 7c99e70ad51a80876a28a6dd21035d6cbc413abe Mon Sep 17 00:00:00 2001 From: arteevraina Date: Sat, 24 Sep 2022 11:37:41 +0530 Subject: [PATCH] docs: added documentation regarding building with fypp script --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index a70d9f18f..46c04fff9 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,21 @@ To use `stdlib` within your `fpm` project, add the following lines to your `fpm. stdlib = { git="https://github.com/fortran-lang/stdlib", branch="stdlib-fpm" } ``` +### Build with [fypp-script](https://github.com/fortran-lang/fpm/pull/729) + +Fortran Package Manager has a compiler wrapper `fypp-script` that can be used to compile stdlib without +switching to `stdlib-fpm` branch. + +```sh +git clone https://github.com/fortran-lang/fpm.git +``` + +``` +fpm run -- build --compiler "$PWD/fypp-gfortran.py" -C stdlib +``` + +**Note** : At this stage, building using `stdlib-fpm` branch should be the preferred way of using `stdlib` with `fpm`. + ## Using stdlib in your project The stdlib project exports CMake package files and pkg-config files to make stdlib usable for other projects.