Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling foo.c.v chooses wrong output name and type. #19727

Closed
JalonSolov opened this issue Nov 1, 2023 · 0 comments · Fixed by #19745
Closed

Compiling foo.c.v chooses wrong output name and type. #19727

JalonSolov opened this issue Nov 1, 2023 · 0 comments · Fixed by #19745
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@JalonSolov
Copy link
Contributor

JalonSolov commented Nov 1, 2023

Describe the bug

Compile a file ending in .c.v, and it outputs a C file, with the base name plus .c extension.

Reproduction Steps

Create a V file named foo.c.v

println('hi')

Compile with v foo.c.v

The output is named foo.c, and is a C file, not an executable.

Expected Behavior

v foo.c.v should create an executable named foo.

Current Behavior

v foo.c.v creates a C file named foo.c.

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.2 cc1193f

Environment details (OS name and version, etc.)

V full version: V 0.4.2 7008059.cc1193f
OS: linux, "Manjaro Linux"
Processor: 32 cpus, 64bit, little endian, AMD Ryzen 9 7950X 16-Core Processor

getwd: /home/jalon
vexe: /home/jalon/git/v/v
vexe mtime: 2023-11-01 12:46:29

vroot: OK, value: /home/jalon/git/v
VMODULES: OK, value: /home/jalon/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.42.0
Git vroot status: weekly.2023.44-11-g289b29be (11 commit(s) behind V master)
.git/config present: true

CC version: cc (GCC) 13.2.1 20230801
thirdparty/tcc status: json2_perf 12f392c3

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@JalonSolov JalonSolov added the Bug This tag is applied to issues which reports bugs. label Nov 1, 2023
@JalonSolov JalonSolov changed the title Compiling foo.c.v chooses wrong output name. Compiling foo.c.v chooses wrong output name and type. Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant