Skip to content

Commit b8f6443

Browse files
authored
[libc] Add GPU config file using the new format (llvm#66635)
Summary: This patch copies a config file for the GPU similar to the baremetal/embedded implementation. This will configure the implementations of functions like `sprintf` and `snprintf` to be compiled into more simple versions that can be run on the GPU. These functions cannot be enabled yet as Vararg support hasn't landed, but it will be used then.
1 parent 99a54b8 commit b8f6443

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

libc/config/gpu/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"printf": {
3+
"LIBC_CONF_PRINTF_DISABLE_FLOAT": {
4+
"value": true
5+
},
6+
"LIBC_CONF_PRINTF_DISABLE_INDEX_MODE": {
7+
"value": true
8+
},
9+
"LIBC_CONF_PRINTF_DISABLE_WRITE_INT": {
10+
"value": true
11+
},
12+
"LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE": {
13+
"value": false
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)