Skip to content

Commit 9e4da6e

Browse files
committed
Simplify text writing for core module headers
1 parent ee1995b commit 9e4da6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/slang/slang-options.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2260,7 +2260,7 @@ SlangResult OptionsParser::_parse(int argc, char const* const* argv)
22602260
16,
22612261
&writer));
22622262

2263-
File::writeAllText(fileName.value, builder);
2263+
File::writeNativeText(fileName.value, builder.getBuffer(), builder.getLength());
22642264
break;
22652265
}
22662266
case OptionKind::DumpIrIds:

0 commit comments

Comments
 (0)