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:
@@ -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()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef RUST_H
|
||||
#define RUST_H
|
||||
|
||||
#ifdef USE_RUST
|
||||
#ifndef NO_RUST
|
||||
|
||||
#include "nextpnr.h"
|
||||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
Reference in New Issue
Block a user