Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Aug 28, 2024
1 parent da04956 commit 04f7c28
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/ympbuild.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,20 @@ Ymp can compile a package multiple time in same package. You can define multipl
.. code-block:: shell
...
buildtypes=(64bit 32bit)
buildtypes=(foo bar bazz)
...
You can check buildtype like this in ympbuild file

.. code-block:: shell
...
if buildtype 32bit ; then
export CFLAGS="$CFLAGS -m32"
if buildtype foo ; then
export CFLAGS="..."
fi
# or check BUILDTYPE environment
if [[ "$BUILDTYPE" == "32bit" ]] ; then
export CFLAGS="$CFLAGS -m32"
if [[ "$BUILDTYPE" == "bar" ]] ; then
export CFLAGS="..."
fi
...
Expand Down

0 comments on commit 04f7c28

Please sign in to comment.