Open xiaoyuvax opened 1 year ago
I can't repro this - I ran bflat build --target Shared --os linux library.cs
in the samples/DynamicLibrary directory of this repo.
Are you maybe using RSP files or something? The command line parser bflat uses is a big regret of mine: https://github.com/bflattened/bflat/pull/32#issue-1353505600
i guess that command line parser is buggy somehow. yeah, it's in the RSP file, if i did not remember wrong, since recently i've been working on RSP, after u told me it's available. and this issue cannot be reproed manually.
this issue is reproduced again today when using "build-il" , while change it to "build" is ok.
bflat build-il @build.rsp
Error: IO_FileNotFound_FileName, D:\Repos\bflata\bin\Debug\net7.0\--feature:System.Resources.ResourceManager.AllowCustomResourceTypes=true
IO_FileName_Name, D:\Repos\bflata\bin\Debug\net7.0\--feature:System.Resources.ResourceManager.AllowCustomResourceTypes=true
...
RSP file content:
-o Program.exe
--target WinExe
--feature:System.Resources.ResourceManager.AllowCustomResourceTypes=true
--feature:System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true
-O0
--ldflags /INCREMENTAL:no
Program.cs
The command line parser bflat uses is a big regret of mine: #32 (comment)
I guess it's true! :```-)
possibly because build-il doesn't support any --feature opt?
i found --ldflags r not allowed too.
Yeah, those arguments don't make sense when building IL. The command line parser sends all unmatched parameters as file names. It's a ridiculous command line parser.
should just be removed or ignored, so that user doesn't have to create different versions of args set for either 'build' or 'build-il'
bflat build --target Shared --os linux <filelist>
throws below exception, whilebflat build --target Shared <filelist>
works well.Occured during compiling this demo project: https://github.com/xiaoyuvax/ObjectPoolReuseCaseDemo