[libcxx-commits] [libcxx] 48138e7 - [libc++] Do not error out when we don't know the file format

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 17 10:19:00 PST 2020


Author: Louis Dionne
Date: 2020-11-17T13:18:51-05:00
New Revision: 48138e7338c19f4f7347e470e9d10b0f24ff893d

URL: https://github.com/llvm/llvm-project/commit/48138e7338c19f4f7347e470e9d10b0f24ff893d
DIFF: https://github.com/llvm/llvm-project/commit/48138e7338c19f4f7347e470e9d10b0f24ff893d.diff

LOG: [libc++] Do not error out when we don't know the file format

Erroring out prevents the library from working with other file formats
(e.g. in embedded). Since that error does not guard us from doing something
incorrect, it seems fine to just remove it.

Added: 
    

Modified: 
    libcxx/include/__config

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__config b/libcxx/include/__config
index d68e128cec7d..00068973bf26 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -63,7 +63,7 @@
 #elif defined(__wasm__)
 #  define _LIBCPP_OBJECT_FORMAT_WASM  1
 #else
-#  error Unknown object file format
+   // ... add new file formats here ...
 #endif
 
 #if defined(_LIBCPP_ABI_UNSTABLE) || _LIBCPP_ABI_VERSION >= 2


        


More information about the libcxx-commits mailing list