-
Notifications
You must be signed in to change notification settings - Fork 482
feat: auto compile before debug (#1367). #1368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: ayamir <lgt986452565@gmail.com>
Signed-off-by: ayamir <lgt986452565@gmail.com>
|
seems reasonable for me, but i'm currently busy so i can't test it. |
|
However, the default output path of Debug should also be changed to ./filename.out. Now the default is ./a.out, and the compiled binary file is ./filename.out |
Done |
|
It works great, thanks a lot |
* feat: auto compile before debug (ayamir#1367). * fix: ci. * fix: ci. * fix: keep filename consistency with compiled outfile and prompt. --------- Signed-off-by: ayamir <lgt986452565@gmail.com>
This PR reverts commit a1c76b2. The main rationale behind this is IMO the current implementation of this function has several limitations that need to be addressed: 1. It works with only a single file, which is not typical for most use cases 2. It only supports gcc as the compiler, whereas other compilers (most notably clang, xlc, cl.exe and friends) are not supported 3. There's no way to control compile and/or build flags. 4. File type detection is too restrictive and doesn't cover all cases (using vim's ftplugins may be more effective) and 5. Violating any of these assumptions results in errors, rendering this keymap completely ineffective.
#1367