Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vial/rt/fs.hlx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const eval if defined(_WIN32) {
}

fn read_file(path: types::Path) -> string? {
var ifs = libcxx::ifstream(path.generic_wstring(), libcxx::ios::binary);
var ifs = libcxx::ifstream(path.generic_string(), libcxx::ios::binary);

if !ifs {
return null;
Expand Down
9 changes: 6 additions & 3 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function get_runtime(abi)
return "c++_static"
elseif abi == "gcc"
then
return "stdc++_static"
return "libc++"
elseif abi == "msvc"
then
return "MT"
Expand Down Expand Up @@ -166,12 +166,15 @@ local function setup_env()
set_languages(cxx_standard)

-- Set the runtime
set_runtimes(runtime)
if not (abi == "gcc")
then
set_runtimes(runtime)
end
end

local function helix_src_setup()
-- Include dir
add_includedirs("source")
add_includedirs("source")

-- Add source fikes
add_files("source/**.cc") -- add all files in the source directory
Expand Down
Loading