v icon indicating copy to clipboard operation
v copied to clipboard

Native backend error in vlib/time/time_nix.c

Open mike-ward opened this issue 10 months ago • 1 comments

Describe the bug

v -prod -backend native lsv -o bin/lsv
/Users/mike/Documents/github/v/vlib/time/time_nix.c.v:6:1: error: `-D` and `-I` flags are not supported with the native backend
    4 | module time
    5 |
    6 | #flag darwin -I@VEXEROOT/thirdparty/legacy/include/LegacySupport
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    7 | #include <time.h>
    8 | #include <errno.h>```

### Reproduction Steps

.

### Expected Behavior

.

### Current Behavior

.

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### V version

V 0.4.9 0c9d076

### Environment details (OS name and version, etc.)

|V full version      |V 0.4.9 da3112e.0c9d076
|:-------------------|:-------------------
|OS                  |macos, macOS, 15.1.1, 24B91
|Processor           |8 cpus, 64bit, little endian, Apple M2
|Memory              |0.15GB/8GB
|                    |
|V executable        |/Users/mike/Documents/github/v/v
|V last modified time|2025-01-06 22:31:47
|                    |
|V home dir          |OK, value: /Users/mike/Documents/github/v
|VMODULES            |OK, value: /Users/mike/.vmodules
|VTMP                |OK, value: /tmp/v_501
|Current working dir |OK, value: /Users/mike/Documents/github/lsv
|                    |
|Git version         |git version 2.47.1
|V git status        |0.4.9-109-g0c9d0762
|.git/config present |true
|                    |
|cc version          |Apple clang version 16.0.0 (clang-1600.0.26.6)
|gcc version         |Apple clang version 16.0.0 (clang-1600.0.26.6)
|clang version       |Apple clang version 16.0.0 (clang-1600.0.26.6)
|tcc version         |tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
|tcc git status      |thirdparty-macos-arm64 713692d4
|emcc version        |N/A
|glibc version       |N/A

> [!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.

mike-ward avatar Jan 06 '25 23:01 mike-ward

Yeah... unfortunately, the native backend is very WIP, with a lot of stuff simply not implemented, yet.

JalonSolov avatar Jan 06 '25 23:01 JalonSolov