forked from M-Labs/nac3
1
0
Fork 0

core: -I irrt/ & #include absolute paths

This commit is contained in:
lyken 2024-07-14 17:09:48 +08:00
parent 5faac4b9d4
commit 73937730e0
7 changed files with 19 additions and 13 deletions

View File

@ -46,6 +46,8 @@ fn compile_irrt_cpp() {
"-Wall",
"-Wextra",
"-Werror=return-type",
"-I",
irrt_dir.to_str().unwrap(),
"-o",
"-",
irrt_cpp_path.to_str().unwrap(),
@ -133,6 +135,8 @@ fn compile_irrt_test_cpp() {
"-Wextra",
"-Werror=return-type",
"-lm", // for `tgamma()`, `lgamma()`
"-I",
irrt_dir.to_str().unwrap(),
"-o",
exe_path.to_str().unwrap(),
];

View File

@ -1,5 +1,5 @@
#define IRRT_DEFINE_TYPEDEF_INTS
#include "irrt_everything.hpp"
#include <irrt_everything.hpp>
/*
All IRRT implementations.

View File

@ -1,7 +1,7 @@
#pragma once
#include "utils.hpp"
#include "int_defs.hpp"
#include <irrt/utils.hpp>
#include <irrt/int_defs.hpp>
// NDArray indices are always `uint32_t`.
using NDIndex = uint32_t;

View File

@ -1,3 +1,5 @@
#include "irrt/core.hpp"
#include "irrt/int_defs.hpp"
#include "irrt/utils.hpp"
#pragma once
#include <irrt/core.hpp>
#include <irrt/int_defs.hpp>
#include <irrt/utils.hpp>

View File

@ -5,10 +5,10 @@
#include <cstdio>
#include <cstdlib>
#include "irrt_everything.hpp"
#include <irrt_everything.hpp>
#include "test/core.hpp"
#include "test/test_core.hpp"
#include <test/core.hpp>
#include <test/test_core.hpp>
int main() {
test_int_exp();

View File

@ -6,10 +6,10 @@
#include <cstdio>
#include <cstdlib>
#include "print.hpp"
#include <test/print.hpp>
// Some utils can be used here
#include "../irrt/utils.hpp"
#include <irrt/utils.hpp>
void __begin_test(const char* function_name, const char* file, int line) {
printf("######### Running %s @ %s:%d\n", function_name, file, line);

View File

@ -1,7 +1,7 @@
#pragma once
#include "core.hpp"
#include "../irrt/core.hpp"
#include <test/core.hpp>
#include <irrt/core.hpp>
void test_int_exp() {
BEGIN_TEST();