1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-04 15:15:34 +00:00

CMake: refactor architecture-specific build system parts.

Two user-visible changes were made:
* `-DUSE_RUST` is replaced with `-DBUILD_RUST`, by analogy with
  `-DBUILD_PYTHON`
* `-DCOVERAGE` was removed as it doesn't work with either modern GCC
  or Clang
This commit is contained in:
Catherine
2025-01-16 20:06:10 +00:00
parent bb2336ad73
commit cd7f7c12f1
44 changed files with 1246 additions and 370 deletions

View File

@@ -2,9 +2,7 @@ add_library(nextpnr_rust INTERFACE)
target_include_directories(nextpnr_rust INTERFACE .)
if (USE_RUST)
target_sources(nextpnr_rust PUBLIC
rust.cc
rust.h
)
target_sources(nextpnr_rust INTERFACE rust.h)
if (BUILD_RUST)
target_sources(nextpnr_rust INTERFACE rust.cc)
endif()

View File

@@ -20,7 +20,7 @@
#ifndef RUST_H
#define RUST_H
#ifdef USE_RUST
#ifndef NO_RUST
#include "nextpnr.h"
NEXTPNR_NAMESPACE_BEGIN