Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/shared/serial_ports/src/serial_io-nonblocking.ads
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ private
(Device : not null access USART;
IRQ : Interrupt_ID;
IRQ_Priority : Interrupt_Priority)
with
Interrupt_Priority => IRQ_Priority
is
pragma Interrupt_Priority (IRQ_Priority);
-- FIXME: this is supposed to be an aspect, however with FSF GNAT 12
-- the compiler does not have IRQ_Priority in scope when an aspect is
-- used and rejects it.

procedure Start_Sending (Msg : not null access Message);

Expand Down
4 changes: 2 additions & 2 deletions scripts/build_all_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os.path
import subprocess
import sys
import distutils.spawn
import shutil

ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))

Expand Down Expand Up @@ -173,7 +173,7 @@ def gprbuild(project_file, debug=False):
]

# Check if RISC-V32 compiler is available
if distutils.spawn.find_executable("riscv64-elf-gnatls"):
if shutil.which("riscv64-elf-gnatls"):

# Add RISC-V32 projects
projects += ["/examples/HiFive1/hifive1_example.gpr"]
Expand Down
Loading