This commit is contained in:
spaceeye 2023-06-10 00:03:22 +03:00
parent c4fbaf7e1c
commit 19347fa6c6
2 changed files with 1 additions and 7 deletions

View File

@ -58,12 +58,6 @@ r'''/*
shutil.copy("src/main.cpp", "amalgamated/main.cpp")
if sys.platform == 'linux':
ok = os.system("clang++ -o pocketpy amalgamated/main.cpp --std=c++17 -stdlib=libc++")
if ok == 0:
print("Test build success!")
os.remove("pocketpy")
print("amalgamated/pocketpy.h")
content = []

View File

@ -15,7 +15,7 @@ inline std::filesystem::path get_rel(const VM* vm, const std::filesystem::path &
return rel.lexically_relative(vm->_lowest_isolated_cwd_path);
}
bool check_if_path_is_isolated(const std::string & path_to_check_str,
inline bool check_if_path_is_isolated(const std::string & path_to_check_str,
const std::string & toplevel_path_str) {
//.lexically_normal() expands somepath/somdir/.. to somepath/
auto toplevel_path = std::filesystem::path(toplevel_path_str).lexically_normal();