https://bugs.llvm.org/show_bug.cgi?id=48746
Bug ID: 48746
Summary: command line defines are truncated at double slash
Product: clang
Version: 11.0
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
A define specified via -D that has two slashes together will be truncated.
Example:
> echo TFILE > test
> cpp -DTFILE="/some/path//foo/bar" test
# 1 "test"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 338 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test" 2
/some/path
>
Expected output of the preprocessor should have /some/path//foo/bar.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs