diff --git a/amalgamate.py b/amalgamate.py index 4a2b3de1..f049dadd 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -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 = [] diff --git a/src/isolated_os.h b/src/isolated_os.h index f24b1c4c..cff3dc3b 100644 --- a/src/isolated_os.h +++ b/src/isolated_os.h @@ -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();