diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a8b1ab72b9d..f75f5b6e7337 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,7 +95,6 @@ tvm_option(USE_NNAPI_CODEGEN "Build with NNAPI Codegen support" OFF) tvm_option(USE_NNAPI_RUNTIME "Build with NNAPI runtime" OFF) tvm_option(USE_EXAMPLE_NPU_CODEGEN "Build with Example NPU Codegen support" OFF) tvm_option(USE_EXAMPLE_NPU_RUNTIME "Build with Example NPU runtime" OFF) -tvm_option(USE_RUST_EXT "Build with Rust based compiler extensions, STATIC, DYNAMIC, or OFF" OFF) tvm_option(SUMMARIZE "Print CMake option summary after configuring" OFF) tvm_option(USE_CLML "Build with CLML Codegen support" OFF) tvm_option(USE_CLML_GRAPH_EXECUTOR "Build with CLML graph runtime" OFF) diff --git a/cmake/modules/LibInfo.cmake b/cmake/modules/LibInfo.cmake index e98c5b27c092..5c1286e0b5fb 100644 --- a/cmake/modules/LibInfo.cmake +++ b/cmake/modules/LibInfo.cmake @@ -94,7 +94,6 @@ function(add_lib_info src_file) TVM_INFO_USE_RPC="${USE_RPC}" TVM_INFO_TVM_BUILD_PYTHON_MODULE="${TVM_BUILD_PYTHON_MODULE}" TVM_INFO_USE_RTTI="${USE_RTTI}" - TVM_INFO_USE_RUST_EXT="${USE_RUST_EXT}" TVM_INFO_USE_SORT="${USE_SORT}" TVM_INFO_USE_SPIRV_KHR_INTEGER_DOT_PRODUCT="${USE_SPIRV_KHR_INTEGER_DOT_PRODUCT}" TVM_INFO_USE_TENSORRT_CODEGEN="${USE_TENSORRT_CODEGEN}" diff --git a/src/contrib/rust_extension.cc b/src/contrib/rust_extension.cc deleted file mode 100644 index 46e94fffdf55..000000000000 --- a/src/contrib/rust_extension.cc +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/*! - * \file src/contrib/rust_extension.cc - * \brief Expose Rust extensions initialization. - */ -#ifdef RUST_COMPILER_EXT - -extern "C" { -int compiler_ext_initialize(); -static int test = compiler_ext_initialize(); -} - -#endif diff --git a/src/support/libinfo.cc b/src/support/libinfo.cc index 7aaeb3779563..e3d03cf76cc4 100644 --- a/src/support/libinfo.cc +++ b/src/support/libinfo.cc @@ -294,7 +294,6 @@ TVM_DLL ffi::Map GetLibInfo() { {"USE_RPC", TVM_INFO_USE_RPC}, {"TVM_BUILD_PYTHON_MODULE", TVM_INFO_TVM_BUILD_PYTHON_MODULE}, {"USE_RTTI", TVM_INFO_USE_RTTI}, - {"USE_RUST_EXT", TVM_INFO_USE_RUST_EXT}, {"USE_SORT", TVM_INFO_USE_SORT}, {"USE_SPIRV_KHR_INTEGER_DOT_PRODUCT", TVM_INFO_USE_SPIRV_KHR_INTEGER_DOT_PRODUCT}, {"USE_TENSORRT_CODEGEN", TVM_INFO_USE_TENSORRT_CODEGEN},