This is an automated email from the ASF dual-hosted git repository. jroesch pushed a commit to branch cargo-build in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git
commit 68283745b9c283db611579205a3b925eb09e9faa Author: Jared Roesch <jroe...@octoml.ai> AuthorDate: Fri Oct 16 16:32:13 2020 -0700 Fix the extension code --- src/contrib/rust_extension.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/contrib/rust_extension.cc b/src/contrib/rust_extension.cc new file mode 100644 index 0000000..075cbc6 --- /dev/null +++ b/src/contrib/rust_extension.cc @@ -0,0 +1,31 @@ +/* + * 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