{"id":19351540,"url":"https://github.com/opensourcedoc/objcheck","last_synced_at":"2025-02-24T10:27:22.597Z","repository":{"id":77782887,"uuid":"223174491","full_name":"opensourcedoc/objcheck","owner":"opensourcedoc","description":"Test Compiler Compatibility for Objective-C code against both Clang and GCC","archived":false,"fork":false,"pushed_at":"2022-01-28T11:52:10.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-06T15:48:53.935Z","etag":null,"topics":["clang","compatibility-testing","gcc","objective-c","objective-cpp","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensourcedoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-21T12:57:31.000Z","updated_at":"2022-02-01T00:07:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"8cfe8924-9784-4924-ad0c-d45b6af622d3","html_url":"https://github.com/opensourcedoc/objcheck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fobjcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fobjcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fobjcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensourcedoc%2Fobjcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensourcedoc","download_url":"https://codeload.github.com/opensourcedoc/objcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240460485,"owners_count":19804903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clang","compatibility-testing","gcc","objective-c","objective-cpp","shell-script"],"created_at":"2024-11-10T04:36:33.496Z","updated_at":"2025-02-24T10:27:22.539Z","avatar_url":"https://github.com/opensourcedoc.png","language":"Shell","readme":"# objcheck\n\n`objcheck`, aka *Obj*ective-*C* C*heck*, tests Objective-C and Objective-C++ code against both Clang and GCC automatically.\n\n## Warning\n\n`objcheck` checks target source by compiling and executing it. Hence, DON'T use `objcheck` to test untrusted source.\n\n## Why `objcheck`?\n\nCurrently, the major Objective-C compilers, Clang and GCC, are not totally compatible at code level. If wanting to check compiler compatibility for our Objective-C code base, we have to compile it twice.\n\nIt is tedious to write Makefile or another project configuration file for each code base. To address this issue, `objcheck` automatically tests your code base against both Clang and GCC without any project configuration file.\n\n`objcheck` intends to check small code base because `objcheck` doesn't rely on any external project configuration, unsuitable for large and complex projects.\n\n## System Requirements\n\n`objcheck` itself is implemented in POSIX shell. Besides a shell, you need\n\n* GCC with Objective-C support\n* Clang\n* GNUstep\n\n`objcheck` will check these dependencies, emitting an error message if one is not installed on your system.\n\nWe tested `objcheck` on Ubuntu 18.04 LTS and Amazon Linux. The latter is largely RHEL and CentOS compatible. It should work on other Unix-like OSes as well.\n\n## Supported File Formats\n\n`objcheck` supports the following file extensions:\n\n* *.m* for Objective-C source\n* *.mm* for Objective-C++ source\n* *.c* for C source\n* *.cpp*, *.cxx* or *.cc* for C++ source\n\n`objcheck` can handle Objective-C projects that mix these languages together.\n\n## Usage\n\nBefore using `objcheck`, add executable mode to it:\n\n```\n$ chmod +x path/to/objcheck\n```\n\nThen, copy `objcheck` to a valid **$PATH** like *$HOME/bin* to use it.\n\nCheck single file:\n\n```\n$ objcheck path/to/file.m\n```\n\nCheck multiple files in a project:\n\n```\n$ objcheck path/to/*.m\n```\n\nCheck for a static library:\n\n```\n$ objcheck static path/to/*.m\n```\n\nCheck for a dynamic library:\n\n```\n$ objcheck dynamic path/to/*.m\n```\n\nShow help info:\n\n```\n$ objcheck help\n```\n\n## Environment Variables\n\nYou can adjust the behavior of `objcheck` with the following environment variables:\n\n* **GCC** to set GCC compiler\n* **GXX** to set G++ compiler\n* **CLANG** to set Clang compiler\n* **CLANGXX** to set Clang++ compiler\n* **OUT_FILE** to set the name of a temporary output file\n* **GNUSTEP_INCLUDE** to set the include path of GNUstep\n* **GNUSTEP_LIB** to set the lib path of GNUstep\n* **CFLAGS** to set custom include paths and compiler flags for C\n* **CXXFLAGS** to set custom include paths and compiler flags for C++\n* **LDFLAGS** to set custom lib paths\n* **LIBS** to set custom library linkages\n* **LD_LIBRARY_PATH** to set custom binary file paths\n\nAll environment variables are optional, set with sensible default values.\n\n## License\n\nCopyright 2019 (c) Michelle Chen. Licensed under [MIT](https://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourcedoc%2Fobjcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensourcedoc%2Fobjcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensourcedoc%2Fobjcheck/lists"}