-
Xmake Versionv2.6.3+dev.bcf29f1 Operating System Version and ArchitectureMacOS Describe BugI want to use post compile command to generate a disassemble files of elf. But the os.exec failed to recognize the io redirect operator ">". The output content is not written to a file but directly dump in the shell. The command failed at char ">". The actually executed commands seems to be the following. Expected BehaviorIt should just work like executed in shell and redirect the output of arm-none-eabi-objdump to a file called "build/minimal-proj.asm". Project ConfigurationAdditional Information and Error LogsWhen I directly run the command in shell, it could success to generate the asm file. When I use the os.exec, it failed to output to the "build/minimal-proj.asm" file but directly dump the content to shell. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Currently, I need to use os.iorun to capture the results. |
Beta Was this translation helpful? Give feedback.
-
|
see https://xmake.io/#/manual/builtin_modules?id=osexecv os.execv("echo", {"hello", "xmake!"}, {stdout = outfile, stderr = errfile}outfile/errfile can be filepath/pipe/fileobj |
Beta Was this translation helpful? Give feedback.
see https://xmake.io/#/manual/builtin_modules?id=osexecv
outfile/errfile can be filepath/pipe/fileobj