mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-10 13:40:16 +00:00
.
This commit is contained in:
parent
c4fbaf7e1c
commit
19347fa6c6
@ -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 = []
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user