core: -I irrt/ & #include absolute paths
This commit is contained in:
parent
5faac4b9d4
commit
73937730e0
@ -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(),
|
||||
];
|
||||
|
@ -1,5 +1,5 @@
|
||||
#define IRRT_DEFINE_TYPEDEF_INTS
|
||||
#include "irrt_everything.hpp"
|
||||
#include <irrt_everything.hpp>
|
||||
|
||||
/*
|
||||
All IRRT implementations.
|
||||
|
@ -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;
|
||||
|
@ -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>
|
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user