forked from M-Labs/nac3
core: -I irrt/ & #include absolute paths
This commit is contained in:
parent
5faac4b9d4
commit
73937730e0
|
@ -46,6 +46,8 @@ fn compile_irrt_cpp() {
|
||||||
"-Wall",
|
"-Wall",
|
||||||
"-Wextra",
|
"-Wextra",
|
||||||
"-Werror=return-type",
|
"-Werror=return-type",
|
||||||
|
"-I",
|
||||||
|
irrt_dir.to_str().unwrap(),
|
||||||
"-o",
|
"-o",
|
||||||
"-",
|
"-",
|
||||||
irrt_cpp_path.to_str().unwrap(),
|
irrt_cpp_path.to_str().unwrap(),
|
||||||
|
@ -133,6 +135,8 @@ fn compile_irrt_test_cpp() {
|
||||||
"-Wextra",
|
"-Wextra",
|
||||||
"-Werror=return-type",
|
"-Werror=return-type",
|
||||||
"-lm", // for `tgamma()`, `lgamma()`
|
"-lm", // for `tgamma()`, `lgamma()`
|
||||||
|
"-I",
|
||||||
|
irrt_dir.to_str().unwrap(),
|
||||||
"-o",
|
"-o",
|
||||||
exe_path.to_str().unwrap(),
|
exe_path.to_str().unwrap(),
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#define IRRT_DEFINE_TYPEDEF_INTS
|
#define IRRT_DEFINE_TYPEDEF_INTS
|
||||||
#include "irrt_everything.hpp"
|
#include <irrt_everything.hpp>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
All IRRT implementations.
|
All IRRT implementations.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "utils.hpp"
|
#include <irrt/utils.hpp>
|
||||||
#include "int_defs.hpp"
|
#include <irrt/int_defs.hpp>
|
||||||
|
|
||||||
// NDArray indices are always `uint32_t`.
|
// NDArray indices are always `uint32_t`.
|
||||||
using NDIndex = uint32_t;
|
using NDIndex = uint32_t;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
#include "irrt/core.hpp"
|
#pragma once
|
||||||
#include "irrt/int_defs.hpp"
|
|
||||||
#include "irrt/utils.hpp"
|
#include <irrt/core.hpp>
|
||||||
|
#include <irrt/int_defs.hpp>
|
||||||
|
#include <irrt/utils.hpp>
|
|
@ -5,10 +5,10 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "irrt_everything.hpp"
|
#include <irrt_everything.hpp>
|
||||||
|
|
||||||
#include "test/core.hpp"
|
#include <test/core.hpp>
|
||||||
#include "test/test_core.hpp"
|
#include <test/test_core.hpp>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
test_int_exp();
|
test_int_exp();
|
||||||
|
|
|
@ -6,10 +6,10 @@
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include "print.hpp"
|
#include <test/print.hpp>
|
||||||
|
|
||||||
// Some utils can be used here
|
// 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) {
|
void __begin_test(const char* function_name, const char* file, int line) {
|
||||||
printf("######### Running %s @ %s:%d\n", function_name, file, line);
|
printf("######### Running %s @ %s:%d\n", function_name, file, line);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "core.hpp"
|
#include <test/core.hpp>
|
||||||
#include "../irrt/core.hpp"
|
#include <irrt/core.hpp>
|
||||||
|
|
||||||
void test_int_exp() {
|
void test_int_exp() {
|
||||||
BEGIN_TEST();
|
BEGIN_TEST();
|
||||||
|
|
Loading…
Reference in New Issue